org.apache.lucene.facet.search
Class DepthOneFacetResultsHandler

java.lang.Object
  extended by org.apache.lucene.facet.search.FacetResultsHandler
      extended by org.apache.lucene.facet.search.DepthOneFacetResultsHandler

public class DepthOneFacetResultsHandler
extends FacetResultsHandler

A FacetResultsHandler which counts the top-K facets at depth 1 only and always labels all result categories. The results are always sorted by value, in descending order.

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.search.FacetResultsHandler
facetArrays, facetRequest, resolver, taxonomyReader
 
Constructor Summary
DepthOneFacetResultsHandler(TaxonomyReader taxonomyReader, FacetRequest facetRequest, FacetArrays facetArrays, OrdinalValueResolver resolver)
           
 
Method Summary
 FacetResult compute()
          Computes the FacetResult for the given FacetArrays.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DepthOneFacetResultsHandler

public DepthOneFacetResultsHandler(TaxonomyReader taxonomyReader,
                                   FacetRequest facetRequest,
                                   FacetArrays facetArrays,
                                   OrdinalValueResolver resolver)
Method Detail

compute

public final FacetResult compute()
                          throws IOException
Description copied from class: FacetResultsHandler
Computes the FacetResult for the given FacetArrays.

Specified by:
compute in class FacetResultsHandler
Throws:
IOException


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