Class FeatureExpressionEvaluatorFactory

java.lang.Object
com.luciad.models.features.FeatureExpressionEvaluatorFactory

public final class FeatureExpressionEvaluatorFactory extends Object
Factory to create an evaluator for expressions to be applied on Feature instances.
  • Method Details

    • createEvaluator

      @NotNull public static FeatureExpressionEvaluator createEvaluator(@NotNull Expression expression)
      Create an evaluator for the given expression.
      Parameters:
      expression - the expression for which an evaluator is needed.
      Returns:
      the evaluator for the expression.
    • createEvaluator

      @NotNull public static FeatureExpressionEvaluator createEvaluator(@NotNull FeatureQuery query)
      Create an evaluator for the given query.

      This method only takes the Query::getBounds() and the Query::getCondition() methods into account.

      Parameters:
      query - the query for which an evaluator is needed.
      Returns:
      the evaluator for the expression.
    • createEvaluator

      @NotNull public static FeatureExpressionEvaluator createEvaluator(@NotNull List<Long> featureIds)
      Returns returns an evaluator that only accepts features that are contained in the given list of feature id's.
      Parameters:
      featureIds - a list of feature id's
      Returns:
      returns an evaluator that only accepts features that are contained in the given list of feature id's
    • createAlwaysAcceptEvaluator

      @NotNull public static FeatureExpressionEvaluator createAlwaysAcceptEvaluator()
      Returns an evaluator that always returns true
      Returns:
      an evaluator that always returns true