public abstract class IntTaxonomyFacets extends TaxonomyFacets
config, indexFieldName, parents, taxoReader| Modifier | Constructor and Description |
|---|---|
protected |
IntTaxonomyFacets(String indexFieldName,
TaxonomyReader taxoReader,
FacetsConfig config,
FacetsCollector fc)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
getSpecificValue(String dim,
String... path)
Return the count or value
for a specific path.
|
FacetResult |
getTopChildren(int topN,
String dim,
String... path)
Returns the topN child labels under the specified
path.
|
protected void |
increment(int ordinal)
Increment the count for this ordinal by 1.
|
protected void |
increment(int ordinal,
int amount)
Increment the count for this ordinal by
amount.. |
protected void |
rollup()
Rolls up any single-valued hierarchical dimensions.
|
protected boolean |
useHashTable(FacetsCollector fc,
TaxonomyReader taxoReader)
Return true if a sparse hash table should be used for counting, instead of a dense int[].
|
childrenLoaded, getAllDims, getChildren, getSiblings, siblingsLoaded, verifyDimprotected IntTaxonomyFacets(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) throws IOException
IOExceptionprotected boolean useHashTable(FacetsCollector fc, TaxonomyReader taxoReader)
protected void increment(int ordinal)
protected void increment(int ordinal,
int amount)
amount..protected void rollup()
throws IOException
IOExceptionpublic Number getSpecificValue(String dim, String... path) throws IOException
FacetsgetSpecificValue in class FacetsIOExceptionpublic FacetResult getTopChildren(int topN, String dim, String... path) throws IOException
FacetsgetTopChildren in class FacetsIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.