Package org.apache.lucene.facet.facetset
Class ExactFacetSetMatcher
java.lang.Object
org.apache.lucene.facet.facetset.FacetSetMatcher
org.apache.lucene.facet.facetset.ExactFacetSetMatcher
A
FacetSetMatcher
which considers a set as a match only if all dimension values are equal
to the given one.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from class org.apache.lucene.facet.facetset.FacetSetMatcher
dims, label
-
Constructor Summary
ConstructorDescriptionExactFacetSetMatcher
(String label, FacetSet facetSet) Constructs an instance to match the given facet set. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(long[] dimValues) Returns true if the facet set encoded in the givenlong[]
is matched by this matcher.
-
Constructor Details
-
ExactFacetSetMatcher
Constructs an instance to match the given facet set.
-
-
Method Details
-
matches
public boolean matches(long[] dimValues) Description copied from class:FacetSetMatcher
Returns true if the facet set encoded in the givenlong[]
is matched by this matcher.- Specified by:
matches
in classFacetSetMatcher
- Parameters:
dimValues
- the encoded dimension values of a single facet set in this field
-