Package org.apache.lucene.facet.facetset
Class FacetSetMatcher
java.lang.Object
org.apache.lucene.facet.facetset.FacetSetMatcher
- Direct Known Subclasses:
ExactFacetSetMatcher
,RangeFacetSetMatcher
Matches the encoded
FacetSet
that was indexed in FacetSetsField
.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
FacetSetMatcher
(String label, int dims) Constructs a new matcher. -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
matches
(long[] dimValues) Returns true if the facet set encoded in the givenlong[]
is matched by this matcher.
-
Field Details
-
label
The label to associate to this matcher's aggregated value. -
dims
public final int dimsThe number of dimensions that are matched by this matcher.
-
-
Constructor Details
-
FacetSetMatcher
Constructs a new matcher.- Parameters:
label
- the label to associate to this matcher's aggregated valuedims
- the number of dimensions that are matched by this matcher
-
-
Method Details
-
matches
public abstract boolean matches(long[] dimValues) Returns true if the facet set encoded in the givenlong[]
is matched by this matcher.- Parameters:
dimValues
- the encoded dimension values of a single facet set in this field
-