Package org.apache.lucene.facet.facetset
Class DoubleFacetSet
java.lang.Object
org.apache.lucene.facet.facetset.FacetSet
org.apache.lucene.facet.facetset.DoubleFacetSet
A
FacetSet
which encodes double dimension values.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Modifier and TypeFieldDescriptionfinal double[]
The raw dimension values of this facet set. -
Constructor Summary
ConstructorDescriptionDoubleFacetSet
(double... values) Constructs a new instance of a facet set which storesdouble
dimension values. -
Method Summary
Modifier and TypeMethodDescriptionlong[]
Returns the dimension values in this facet set as comparable longs.Methods inherited from class org.apache.lucene.facet.facetset.FacetSet
packValues, sizePackedBytes
-
Field Details
-
values
public final double[] valuesThe raw dimension values of this facet set.
-
-
Constructor Details
-
DoubleFacetSet
public DoubleFacetSet(double... values) Constructs a new instance of a facet set which storesdouble
dimension values.
-
-
Method Details
-
getComparableValues
public long[] getComparableValues()Description copied from class:FacetSet
Returns the dimension values in this facet set as comparable longs.- Specified by:
getComparableValues
in classFacetSet
-