public abstract class DVDistinctValuesCollector<GC extends AbstractDistinctValuesCollector.GroupCount<?>> extends AbstractDistinctValuesCollector<GC>
AbstractDistinctValuesCollector
.AbstractDistinctValuesCollector.GroupCount<GROUP_VALUE_TYPE>
Modifier and Type | Method and Description |
---|---|
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. |
acceptsDocsOutOfOrder, getGroups, setScorer
collect, setNextReader
public static <T> DVDistinctValuesCollector<AbstractDistinctValuesCollector.GroupCount<T>> create(String groupField, String countField, Collection<SearchGroup<T>> groups, boolean diskResident, DocValues.Type type)
AbstractDistinctValuesCollector
based on the specified
type.groupField
- The field to group bycountField
- The field to count distinct values forgroups
- The top N groups, collected during the first phase searchdiskResident
- Whether the values to group and count by should be disk residenttype
- The DocValues.Type
which is used to select a concrete implementationCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.