Package org.apache.lucene.facet
Class FacetResult
java.lang.Object
org.apache.lucene.facet.FacetResult
Counts or aggregates for a single dimension.
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
How many child labels were encountered.final String
Dimension that was requested.final LabelAndValue[]
Child counts.final String[]
Path whose children were requested.final Number
Total number of documents containing a value for this path, even those not included in the topN. -
Constructor Summary
ConstructorDescriptionFacetResult
(String dim, String[] path, Number value, LabelAndValue[] labelValues, int childCount) Sole constructor. -
Method Summary
-
Field Details
-
dim
Dimension that was requested. -
path
Path whose children were requested. -
value
Total number of documents containing a value for this path, even those not included in the topN. If a document contains multiple values for the same path, it will only be counted once in this value. -
childCount
public final int childCountHow many child labels were encountered. -
labelValues
Child counts.
-
-
Constructor Details
-
FacetResult
public FacetResult(String dim, String[] path, Number value, LabelAndValue[] labelValues, int childCount) Sole constructor.
-
-
Method Details