Package org.apache.lucene.facet.taxonomy
Class FloatTaxonomyFacets
- java.lang.Object
-
- org.apache.lucene.facet.Facets
-
- org.apache.lucene.facet.taxonomy.TaxonomyFacets
-
- org.apache.lucene.facet.taxonomy.FloatTaxonomyFacets
-
- Direct Known Subclasses:
TaxonomyFacetSumFloatAssociations,TaxonomyFacetSumValueSource
public abstract class FloatTaxonomyFacets extends TaxonomyFacets
Base class for all taxonomy-based facets that aggregate to a per-ords float[].
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.NumbergetSpecificValue(java.lang.String dim, java.lang.String... path)Return the count or value for a specific path.FacetResultgetTopChildren(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.IOExceptionDescription copied from class:FacetsReturn the count or value for a specific path. Returns -1 if this path doesn't exist, else the count.- Specified by:
getSpecificValuein 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:FacetsReturns 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:
getTopChildrenin classFacets- Throws:
java.io.IOException
-
-