Package com.kheops.jmap.metadata
Class AttributeFilter
java.lang.Object
com.kheops.jmap.metadata.QueryFilter
com.kheops.jmap.metadata.AttributeFilter
- All Implemented Interfaces:
Serializable
,Cloneable
The attribute filter is used as a constraint in the extraction of geometries and
attributes from a spatial data source. Only elements that have a value for the specified
attribute equals to one of the specified values in the filter can be selected in the
data extraction.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.kheops.jmap.metadata.QueryFilter
QueryFilter.GeometryFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Attribute
If the id attribute of the spatial data source is not known, thisID_ATTRIBUTE
can be used by the attribute filter.Fields inherited from class com.kheops.jmap.metadata.QueryFilter
LOGICAL_AND, LOGICAL_OR
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeFilter
(Attribute attribute, Object[] values) Creates a new attribute filter. -
Method Summary
Methods inherited from class com.kheops.jmap.metadata.QueryFilter
getDescription, getLogicalOperator, isEnabled, setDescription, setEnabled, setLogicalOperator
-
Field Details
-
ID_ATTRIBUTE
If the id attribute of the spatial data source is not known, thisID_ATTRIBUTE
can be used by the attribute filter.
-
-
Constructor Details
-
AttributeFilter
Creates a new attribute filter.- Parameters:
attribute
- the attribute to select.values
- values to be used to filter elements.
-
-
Method Details
-
getAttribute
Returns the filter attribute.- Returns:
- the filter attribute.
-
getValues
Returns values to be used to filter elements.- Returns:
- all values to be used to filter elements.
-
clone
Clones this attribute filter.- Specified by:
clone
in classQueryFilter
- Returns:
- a clone of the current instance.
-