org.apache.solr.handler.component
Class PivotFacetHelper

java.lang.Object
  extended by org.apache.solr.handler.component.PivotFacetHelper

public class PivotFacetHelper
extends Object

This is thread safe

Since:
solr 4.0

Constructor Summary
PivotFacetHelper()
           
 
Method Summary
protected  List<NamedList<Object>> doPivots(NamedList<Integer> superFacets, String field, String subField, Deque<String> fnames, ResponseBuilder rb, DocSet docs, int minMatch)
          Recursive function to do all the pivots
protected  SimpleFacets getFacetImplementation(SolrQueryRequest req, DocSet docs, SolrParams params)
          Deprecated. 
 SimpleOrderedMap<List<NamedList<Object>>> process(ResponseBuilder rb, SolrParams params, String[] pivots)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PivotFacetHelper

public PivotFacetHelper()
Method Detail

getFacetImplementation

@Deprecated
protected SimpleFacets getFacetImplementation(SolrQueryRequest req,
                                                         DocSet docs,
                                                         SolrParams params)
Deprecated. 

Designed to be overridden by subclasses that provide different faceting implementations. TODO: Currently this is returning a SimpleFacets object, but those capabilities would be better as an extracted abstract class or interface.


process

public SimpleOrderedMap<List<NamedList<Object>>> process(ResponseBuilder rb,
                                                         SolrParams params,
                                                         String[] pivots)
                                                  throws IOException
Throws:
IOException

doPivots

protected List<NamedList<Object>> doPivots(NamedList<Integer> superFacets,
                                           String field,
                                           String subField,
                                           Deque<String> fnames,
                                           ResponseBuilder rb,
                                           DocSet docs,
                                           int minMatch)
                                    throws IOException
Recursive function to do all the pivots

Throws:
IOException


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