Interface SimplifiableFunction

  • All Known Implementing Classes:

    public interface SimplifiableFunction
    Implemented by functions that can turn themselves into a simpler, more efficient expression, when certain conditions are met. Called by the SimplifyingfilterVisitor when the arguments of the function are not all literals (in which case, a one time simplification is performed instead).
    • Method Detail

      • simplify

        Expression simplify​(FilterFactory ff,
                            FeatureType featureType)
        Returns a simplified version of the function, or the function itself it cannot be be simplified
        ff - The filter factory to use for creating new expressions (mandatory, non null)
        featureType - The target feature type, if available, null otherwise
        The simplified expression