Package org.apache.lucene.facet.facetset
Class FacetSetMatcher
- java.lang.Object
-
- org.apache.lucene.facet.facetset.FacetSetMatcher
-
- Direct Known Subclasses:
ExactFacetSetMatcher
,RangeFacetSetMatcher
public abstract class FacetSetMatcher extends Object
Matches the encodedFacetSet
that was indexed inFacetSetsField
.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FacetSetMatcher(String label, int dims)
Constructs a new matcher.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract boolean
matches(long[] dimValues)
Returns true if the facet set encoded in the givenlong[]
is matched by this matcher.
-
-
-
Field Detail
-
label
public final String label
The label to associate to this matcher's aggregated value.
-
dims
public final int dims
The number of dimensions that are matched by this matcher.
-
-
Constructor Detail
-
FacetSetMatcher
protected FacetSetMatcher(String label, int dims)
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
-
-