Class CollectionValuesConstraint

java.lang.Object
io.fluxzero.common.api.search.constraints.CollectionValuesConstraint
All Implemented Interfaces:
Constraint

public class CollectionValuesConstraint extends Object implements Constraint
Explicit query profile whose range constraints compare field values independently of index annotations.
  • Constructor Details

  • Method Details

    • apply

      public static SearchQuery apply(SearchQuery query)
      Resolves this profile before transport, without changing the caller's query.
    • filters

      public Constraint filters()
      The resolved filters, retaining the marker even for an unconstrained query.
    • matches

      public boolean matches(Document document)
      Description copied from interface: Constraint
      Evaluates whether this constraint applies to the given document.
      Specified by:
      matches in interface Constraint
      Parameters:
      document - the document to test
      Returns:
      true if the constraint matches the document
    • hasPathConstraint

      public boolean hasPathConstraint()
      Description copied from interface: Constraint
      Indicates whether this constraint targets specific paths in the document.
      Specified by:
      hasPathConstraint in interface Constraint
      Returns:
      true if path-based filtering is involved