Package org.apache.lucene.facet.search
Class TotalFacetCounts
- java.lang.Object
-
- org.apache.lucene.facet.search.TotalFacetCounts
-
public class TotalFacetCounts extends Object
Maintain Total Facet Counts per partition, for given parameters:- Index reader of an index
- Taxonomy index reader
- Facet indexing params (and particularly the category list params)
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fillTotalCountsForPartition(int[] partitionArray, int partition)
Fill a partition's array with the TotalCountsArray values.int
getTotalCount(int ordinal)
Return the total count of an input category
-
-
-
Method Detail
-
fillTotalCountsForPartition
public void fillTotalCountsForPartition(int[] partitionArray, int partition)
Fill a partition's array with the TotalCountsArray values.- Parameters:
partitionArray
- array to fillpartition
- number of required partition
-
getTotalCount
public int getTotalCount(int ordinal)
Return the total count of an input category- Parameters:
ordinal
- ordinal of category whose total count is required
-
-