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, verifyDim
protected IntTaxonomyFacets(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) throws IOException
IOException
protected boolean useHashTable(FacetsCollector fc, TaxonomyReader taxoReader)
protected void increment(int ordinal)
protected void increment(int ordinal, int amount)
amount
..protected void rollup() throws IOException
IOException
public Number getSpecificValue(String dim, String... path) throws IOException
Facets
getSpecificValue
in class Facets
IOException
public FacetResult getTopChildren(int topN, String dim, String... path) throws IOException
Facets
getTopChildren
in class Facets
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.