public abstract class IntTaxonomyFacets extends TaxonomyFacets
config, indexFieldName, parents, taxoReader| Modifier | Constructor and Description |
|---|---|
protected |
IntTaxonomyFacets(java.lang.String indexFieldName,
TaxonomyReader taxoReader,
FacetsConfig config,
FacetsCollector fc)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Number |
getSpecificValue(java.lang.String dim,
java.lang.String... path)
Return the count or value
for a specific path.
|
FacetResult |
getTopChildren(int topN,
java.lang.String dim,
java.lang.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(java.lang.String indexFieldName,
TaxonomyReader taxoReader,
FacetsConfig config,
FacetsCollector fc)
throws java.io.IOException
java.io.IOExceptionprotected boolean useHashTable(FacetsCollector fc, TaxonomyReader taxoReader)
protected void increment(int ordinal)
protected void increment(int ordinal,
int amount)
amount..protected void rollup()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Number getSpecificValue(java.lang.String dim,
java.lang.String... path)
throws java.io.IOException
FacetsgetSpecificValue in class Facetsjava.io.IOExceptionpublic FacetResult getTopChildren(int topN, java.lang.String dim, java.lang.String... path) throws java.io.IOException
FacetsgetTopChildren in class Facetsjava.io.IOExceptionData In Motion GmbH all rights reserved