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
FieldsModifier and TypeFieldDescriptionfinal double[]The raw dimension values of this facet set. -
Constructor Summary
ConstructorsConstructorDescriptionDoubleFacetSet(double... values) Constructs a new instance of a facet set which storesdoubledimension 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 storesdoubledimension values.
-
-
Method Details
-
getComparableValues
public long[] getComparableValues()Description copied from class:FacetSetReturns the dimension values in this facet set as comparable longs.- Specified by:
getComparableValuesin classFacetSet
-