java.lang.Object
org.apache.lucene.search.Collector
org.apache.lucene.search.grouping.AbstractDistinctValuesCollector<GC>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 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 implementation
- Returns:
- a docvalues based distinct count collector
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.