Package org.apache.lucene.facet.taxonomy
Class IntTaxonomyFacets
- java.lang.Object
-
- org.apache.lucene.facet.Facets
-
- org.apache.lucene.facet.taxonomy.TaxonomyFacets
-
- org.apache.lucene.facet.taxonomy.IntTaxonomyFacets
-
- Direct Known Subclasses:
FastTaxonomyFacetCounts
,TaxonomyFacetCounts
,TaxonomyFacetSumIntAssociations
public abstract class IntTaxonomyFacets extends TaxonomyFacets
Base class for all taxonomy-based facets that aggregate to a per-ords int[].
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
getAllDims
-
-
-
-
Method Detail
-
getSpecificValue
public java.lang.Number getSpecificValue(java.lang.String dim, java.lang.String... path) throws java.io.IOException
Description copied from class:Facets
Return the count or value for a specific path. Returns -1 if this path doesn't exist, else the count.- Specified by:
getSpecificValue
in classFacets
- Throws:
java.io.IOException
-
getTopChildren
public FacetResult getTopChildren(int topN, java.lang.String dim, java.lang.String... path) throws java.io.IOException
Description copied from class:Facets
Returns the topN child labels under the specified path. Returns null if the specified path doesn't exist or if this dimension was never seen.- Specified by:
getTopChildren
in classFacets
- Throws:
java.io.IOException
-
-