Package org.apache.lucene.spatial.prefix
Class NumberRangePrefixTreeStrategy.Facets
java.lang.Object
org.apache.lucene.spatial.prefix.NumberRangePrefixTreeStrategy.Facets
- Enclosing class:
- NumberRangePrefixTreeStrategy
Facet response information
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Holds a block of detailLevel counts aggregated to their parent level. -
Field Summary
Modifier and TypeFieldDescriptionfinal int
The bottom-most detail-level counted, as requested.final SortedMap<NumberRangePrefixTree.UnitNRShape,
NumberRangePrefixTreeStrategy.Facets.FacetParentVal> Holds all theNumberRangePrefixTreeStrategy.Facets.FacetParentVal
instances in order of the key.int
The count of documents with ranges that completely spanned the parents of the detail level. -
Constructor Summary
-
Method Summary
-
Field Details
-
detailLevel
public final int detailLevelThe bottom-most detail-level counted, as requested. -
topLeaves
public int topLeavesThe count of documents with ranges that completely spanned the parents of the detail level. In more technical terms, this is the count of leaf cells 2 up and higher from the bottom. Usually you only care about counts at detailLevel, and so you will add this number to all other counts below, including to omitted/implied children counts of 0. If there are no indexed ranges (just instances, i.e. fully specified dates) then this value will always be 0. -
parents
public final SortedMap<NumberRangePrefixTree.UnitNRShape,NumberRangePrefixTreeStrategy.Facets.FacetParentVal> parentsHolds all theNumberRangePrefixTreeStrategy.Facets.FacetParentVal
instances in order of the key. This is sparse; there won't be an instance if it's count and children are all 0. The keys areNumberRangePrefixTree.UnitNRShape
shapes, which can be converted back to the original Object (i.e. a Calendar) viaNumberRangePrefixTree.toObject(org.apache.lucene.spatial.prefix.tree.NumberRangePrefixTree.UnitNRShape)
.
-
-
Constructor Details
-
Facets
public Facets(int detailLevel)
-
-
Method Details