public class DefaultSearchParameters extends java.lang.Object implements SearchParameters, java.lang.Cloneable
Constructor and Description |
---|
DefaultSearchParameters() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.lang.Object |
clone()
Creates a copy of the object.
|
void |
copyFrom(SearchParameters params) |
java.util.Map<java.lang.String,java.lang.String> |
getAggregateFunctions() |
DefaultSearchParameters |
getCopy() |
FeatureType |
getFeatureType(FeatureStore store) |
java.util.List<java.lang.String> |
getGroupByColumns() |
boolean |
getIgnoreAggregateFunctions() |
java.lang.String |
getName() |
FeatureQuery |
getQuery() |
FeatureQuery |
getQueryToApply() |
java.util.List<java.lang.String> |
getResultColumnNames() |
int |
getSearchMode() |
java.util.Map<java.lang.String,JsonObject> |
getValues() |
boolean |
isValid(FeatureType type,
java.lang.StringBuilder errMessage) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setFilter(Expression exp) |
void |
setIgnoreAggregateFunctions(boolean ignore) |
void |
setName(java.lang.String name) |
void |
setQuery(FeatureQuery query) |
void |
setSearchMode(int searchMode) |
java.lang.String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cloneQuietly, cloneQuietly
public java.util.List<java.lang.String> getResultColumnNames()
getResultColumnNames
in interface SearchParameters
public java.util.List<java.lang.String> getGroupByColumns()
public java.util.Map<java.lang.String,java.lang.String> getAggregateFunctions()
public void setQuery(FeatureQuery query)
setQuery
in interface SearchParameters
public void setFilter(Expression exp)
public FeatureQuery getQuery()
getQuery
in interface SearchParameters
public FeatureQuery getQueryToApply()
getQueryToApply
in interface SearchParameters
public java.util.Map<java.lang.String,JsonObject> getValues()
getValues
in interface SearchParameters
public static void registerPersistence()
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public DefaultSearchParameters getCopy()
public void copyFrom(SearchParameters params)
copyFrom
in interface SearchParameters
public java.lang.String getName()
getName
in interface SearchParameters
public void setName(java.lang.String name)
setName
in interface SearchParameters
public FeatureType getFeatureType(FeatureStore store)
getFeatureType
in interface SearchParameters
public int getSearchMode()
getSearchMode
in interface SearchParameters
public void setSearchMode(int searchMode)
setSearchMode
in interface SearchParameters
public boolean isValid(FeatureType type, java.lang.StringBuilder errMessage)
isValid
in interface SearchParameters
public void setIgnoreAggregateFunctions(boolean ignore)
setIgnoreAggregateFunctions
in interface SearchParameters
public boolean getIgnoreAggregateFunctions()
getIgnoreAggregateFunctions
in interface SearchParameters
public void clear()
clear
in interface SearchParameters