org.apache.lucene.facet.taxonomy
Class FastTaxonomyFacetCounts

java.lang.Object
  extended by org.apache.lucene.facet.Facets
      extended by org.apache.lucene.facet.taxonomy.TaxonomyFacets
          extended by org.apache.lucene.facet.taxonomy.IntTaxonomyFacets
              extended by org.apache.lucene.facet.taxonomy.FastTaxonomyFacetCounts

public class FastTaxonomyFacetCounts
extends IntTaxonomyFacets

Computes facets counts, assuming the default encoding into DocValues was used.

WARNING: This API is experimental and might change in incompatible ways in the next release.

Field Summary
 
Fields inherited from class org.apache.lucene.facet.taxonomy.IntTaxonomyFacets
values
 
Fields inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
children, config, indexFieldName, siblings, taxoReader
 
Constructor Summary
FastTaxonomyFacetCounts(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc)
          Create FastTaxonomyFacetCounts, using the specified indexFieldName for ordinals.
FastTaxonomyFacetCounts(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc)
          Create FastTaxonomyFacetCounts, which also counts all facet labels.
 
Method Summary
 
Methods inherited from class org.apache.lucene.facet.taxonomy.IntTaxonomyFacets
getSpecificValue, getTopChildren, rollup
 
Methods inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
getAllDims, verifyDim
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastTaxonomyFacetCounts

public FastTaxonomyFacetCounts(TaxonomyReader taxoReader,
                               FacetsConfig config,
                               FacetsCollector fc)
                        throws IOException
Create FastTaxonomyFacetCounts, which also counts all facet labels.

Throws:
IOException

FastTaxonomyFacetCounts

public FastTaxonomyFacetCounts(String indexFieldName,
                               TaxonomyReader taxoReader,
                               FacetsConfig config,
                               FacetsCollector fc)
                        throws IOException
Create FastTaxonomyFacetCounts, using the specified indexFieldName for ordinals. Use this if you had set FacetsConfig.setIndexFieldName(java.lang.String, java.lang.String) to change the index field name for certain dimensions.

Throws:
IOException


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.