public class RangePropertyPredicateEvaluator extends AbstractPredicateEvaluator
DateRangePredicateEvaluator that has optimized date format input.
You can define a lower bound and an upper bound or only one of them. The operation (eg. "lesser than" or "lesser or equals") can also be specified for lower and upper bound individually.
Does not support facet extraction.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOWER_BOUND |
static java.lang.String |
LOWER_OPERATION |
static java.lang.String |
PROPERTY |
static java.lang.String |
PROPERTY_DECIMAL |
static java.lang.String |
UPPER_BOUND |
static java.lang.String |
UPPER_OPERATION |
| Constructor and Description |
|---|
RangePropertyPredicateEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFilter(Predicate p,
EvaluationContext context)
Returns the same as the deprecated
AbstractPredicateEvaluator.isFiltering(Predicate, EvaluationContext) method (ie. |
boolean |
canXpath(Predicate p,
EvaluationContext context)
Returns the inverted boolean value of the deprecated
AbstractPredicateEvaluator.isFiltering(Predicate, EvaluationContext) method (ie. |
java.lang.String[] |
getOrderByProperties(Predicate p,
EvaluationContext context)
Default implementation that always returns
null. |
java.lang.String |
getXPathExpression(Predicate p,
EvaluationContext context)
Default implementation that always returns
null, ie. |
boolean |
includes(Predicate p,
Row row,
EvaluationContext context)
Default implementation that always returns
true, ie. |
getFacetExtractor, getOrderByComparator, isFilteringpublic static final java.lang.String PROPERTY
public static final java.lang.String LOWER_BOUND
public static final java.lang.String LOWER_OPERATION
public static final java.lang.String UPPER_BOUND
public static final java.lang.String UPPER_OPERATION
public static final java.lang.String PROPERTY_DECIMAL
public java.lang.String getXPathExpression(Predicate p, EvaluationContext context)
AbstractPredicateEvaluatornull, ie. adds
nothing to the XPath query. Subclasses can choose whether they want to
implement this method or use the
AbstractPredicateEvaluator.includes(Predicate, Row, EvaluationContext) method for advanced
filtering (or both).getXPathExpression in interface PredicateEvaluatorgetXPathExpression in class AbstractPredicateEvaluatorp - predicate (for this evaluator type) which is evaluatedcontext - helper class which provides access to various elements of the
query evaluationpublic java.lang.String[] getOrderByProperties(Predicate p, EvaluationContext context)
AbstractPredicateEvaluatornull.getOrderByProperties in interface PredicateEvaluatorgetOrderByProperties in class AbstractPredicateEvaluatorp - predicate (for this evaluator type) which is evaluatedcontext - helper class which provides access to various elements of the
query evaluationnullpublic boolean canXpath(Predicate p, EvaluationContext context)
AbstractPredicateEvaluatorAbstractPredicateEvaluator.isFiltering(Predicate, EvaluationContext) method (ie. if not
overridden, true).canXpath in interface PredicateEvaluatorcanXpath in class AbstractPredicateEvaluatorp - predicate (for this evaluator type) which is evaluatedcontext - helper class which provides access to various elements of the
query evaluationtrue if this evaluator can express itself via xpath,
ie. PredicateEvaluator.getXPathExpression(Predicate, EvaluationContext)public boolean canFilter(Predicate p, EvaluationContext context)
AbstractPredicateEvaluatorAbstractPredicateEvaluator.isFiltering(Predicate, EvaluationContext) method (ie. if not
overridden, false).canFilter in interface PredicateEvaluatorcanFilter in class AbstractPredicateEvaluatorp - predicate (for this evaluator type) which is evaluatedcontext - helper class which provides access to various elements of the
query evaluationtrue if this evaluator can be express itself via
filtering, ie.
PredicateEvaluator.includes(Predicate, Row, EvaluationContext)public boolean includes(Predicate p, Row row, EvaluationContext context)
AbstractPredicateEvaluatortrue, ie. it does
not "touch" the result set at all.includes in interface PredicateEvaluatorincludes in class AbstractPredicateEvaluatorp - predicate (for this evaluator type) which is evaluatedrow - current row of the result set returned through the xpath querycontext - helper class which provides access to various elements of the
query evaluationtrue if this row should be part of the final result
set, false if it should be droppedCopyright © 2010 - 2023 Adobe. All Rights Reserved