ComparisonExpressionCacheFilterStrategy class final
Caches the results of node-comparison predicates (and and/or of
two of them) on secondary instances, keyed by the context value.
Port of ComparisonExpressionCacheFilterStrategy. JavaRosa's cache
grows with every value compared (e.g. each answer typed into a
question a cascading select filters on) for as long as the form lives;
this one keeps the maxEntries most recently used results (secondary
instances don't change, so a dropped result is recomputed the same).
- Implemented types
Constructors
- ComparisonExpressionCacheFilterStrategy()
- Creates a strategy with an empty cache.
Properties
Methods
-
filter(
DataInstance sourceInstance, TreeReference nodeset, XPathExpression predicate, List< TreeReference> children, EvaluationContext context, List<TreeReference> next()) → List<TreeReference> -
The
childrenofnodesetthat passpredicate, or the result ofnext(the rest of the chain) when this strategy doesn't apply.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- maxEntries → const int
- How many results are kept at most.