Class AttributeFilter

java.lang.Object
com.kheops.jmap.metadata.QueryFilter
com.kheops.jmap.metadata.AttributeFilter
All Implemented Interfaces:
Serializable, Cloneable

public class AttributeFilter extends QueryFilter
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:
  • Field Details

    • ID_ATTRIBUTE

      public static final Attribute 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

      public AttributeFilter(Attribute attribute, Object[] values)
      Creates a new attribute filter.
      Parameters:
      attribute - the attribute to select.
      values - values to be used to filter elements.
  • Method Details

    • getAttribute

      public Attribute getAttribute()
      Returns the filter attribute.
      Returns:
      the filter attribute.
    • getValues

      public Object[] getValues()
      Returns values to be used to filter elements.
      Returns:
      all values to be used to filter elements.
    • clone

      public Object clone()
      Clones this attribute filter.
      Specified by:
      clone in class QueryFilter
      Returns:
      a clone of the current instance.