Class CollectionValuesConstraint
java.lang.Object
io.fluxzero.common.api.search.constraints.CollectionValuesConstraint
- All Implemented Interfaces:
Constraint
Explicit query profile whose range constraints compare field values independently of index annotations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchQueryapply(SearchQuery query) Resolves this profile before transport, without changing the caller's query.filters()The resolved filters, retaining the marker even for an unconstrained query.booleanIndicates whether this constraint targets specific paths in the document.booleanEvaluates whether this constraint applies to the given document.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Constraint
and, decompose, or
-
Constructor Details
-
CollectionValuesConstraint
@ConstructorProperties("collectionValues") public CollectionValuesConstraint(List<Constraint> collectionValues)
-
-
Method Details
-
apply
Resolves this profile before transport, without changing the caller's query. -
filters
The resolved filters, retaining the marker even for an unconstrained query. -
matches
Description copied from interface:ConstraintEvaluates whether this constraint applies to the given document.- Specified by:
matchesin interfaceConstraint- Parameters:
document- the document to test- Returns:
trueif the constraint matches the document
-
hasPathConstraint
public boolean hasPathConstraint()Description copied from interface:ConstraintIndicates whether this constraint targets specific paths in the document.- Specified by:
hasPathConstraintin interfaceConstraint- Returns:
trueif path-based filtering is involved
-