Class NativeFilterImpl

  • All Implemented Interfaces:
    Filter, NativeFilter

    public final class NativeFilterImpl
    extends Object
    implements NativeFilter
    Default implementation of a native filter that works like an holder for the native expression. This should be enough for most of the situations.
    • Constructor Detail

      • NativeFilterImpl

        public NativeFilterImpl​(String nativeFilter)
    • Method Detail

      • getNative

        public String getNative()
        Description copied from interface: NativeFilter
        Returns the native filter expression defined in the target data source language.
        Specified by:
        getNative in interface NativeFilter
        Returns:
        the native expression defined in the target data source language.
      • evaluate

        public boolean evaluate​(Object object)
        Description copied from interface: Filter
        Give an object, this method determines if the test(s) represented by this filter object are passed.

        This ability is used to allow Queries against both Features and and non spatial data (such as Record) and to express constraints on permissable data values.

        Specified by:
        evaluate in interface Filter
        Returns:
        true if the test(s) are passed for the provided object
      • accept

        public Object accept​(FilterVisitor visitor,
                             Object extraData)
        Description copied from interface: Filter
        Accepts a visitor.

        Implementations of all subinterfaces must have with a method whose content is the following:

        return visitor.visit(this, extraData);
        Specified by:
        accept in interface Filter
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object