org.apache.lucene.search.grouping.dv
Class DVDistinctValuesCollector<GC extends AbstractDistinctValuesCollector.GroupCount<?>>

java.lang.Object
  extended by org.apache.lucene.search.Collector
      extended by org.apache.lucene.search.grouping.AbstractDistinctValuesCollector<GC>
          extended by org.apache.lucene.search.grouping.dv.DVDistinctValuesCollector<GC>

public abstract class DVDistinctValuesCollector<GC extends AbstractDistinctValuesCollector.GroupCount<?>>
extends AbstractDistinctValuesCollector<GC>

Docvalues implementation of AbstractDistinctValuesCollector.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.search.grouping.AbstractDistinctValuesCollector
AbstractDistinctValuesCollector.GroupCount<GROUP_VALUE_TYPE>
 
Method Summary
static
<T> DVDistinctValuesCollector<AbstractDistinctValuesCollector.GroupCount<T>>
create(String groupField, String countField, Collection<SearchGroup<T>> groups, boolean diskResident, DocValues.Type type)
          Constructs a docvalues based implementation of AbstractDistinctValuesCollector based on the specified type.
 
Methods inherited from class org.apache.lucene.search.grouping.AbstractDistinctValuesCollector
acceptsDocsOutOfOrder, getGroups, setScorer
 
Methods inherited from class org.apache.lucene.search.Collector
collect, setNextReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static <T> DVDistinctValuesCollector<AbstractDistinctValuesCollector.GroupCount<T>> create(String groupField,
                                                                                                  String countField,
                                                                                                  Collection<SearchGroup<T>> groups,
                                                                                                  boolean diskResident,
                                                                                                  DocValues.Type type)
Constructs a docvalues based implementation of AbstractDistinctValuesCollector based on the specified type.

Parameters:
groupField - The field to group by
countField - The field to count distinct values for
groups - The top N groups, collected during the first phase search
diskResident - Whether the values to group and count by should be disk resident
type - The DocValues.Type which is used to select a concrete implementation
Returns:
a docvalues based distinct count collector


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