public abstract class DVFirstPassGroupingCollector<GROUP_VALUE_TYPE> extends AbstractFirstPassGroupingCollector<GROUP_VALUE_TYPE>
AbstractFirstPassGroupingCollector
.orderedGroups
Modifier and Type | Method and Description |
---|---|
static <T> DVFirstPassGroupingCollector<T> |
create(Sort groupSort,
int topNGroups,
String groupField,
DocValues.Type type,
boolean diskResident)
Constructs a
DVFirstPassGroupingCollector . |
protected DocValues.Source |
getDefaultSource(AtomicReaderContext readerContext) |
protected abstract void |
setDocValuesSources(DocValues.Source source)
Sets the idv source for concrete implementations to use.
|
void |
setNextReader(AtomicReaderContext readerContext) |
acceptsDocsOutOfOrder, collect, copyDocGroupValue, getDocGroupValue, getTopGroups, setScorer
public static <T> DVFirstPassGroupingCollector<T> create(Sort groupSort, int topNGroups, String groupField, DocValues.Type type, boolean diskResident) throws IOException
DVFirstPassGroupingCollector
.
Selects and constructs the most optimal first pass collector implementation for grouping by DocValues
.groupField
- The field to group bytopNGroups
- The maximum top number of groups to return. Typically this equals to offset + rows.diskResident
- Whether the values to group by should be disk residenttype
- The DocValues.Type
which is used to select a concrete implementation.groupSort
- The sort used for the groupsDocValues
IOException
- If I/O related errors occurpublic void setNextReader(AtomicReaderContext readerContext) throws IOException
setNextReader
in class AbstractFirstPassGroupingCollector<GROUP_VALUE_TYPE>
IOException
protected abstract void setDocValuesSources(DocValues.Source source)
source
- The idv source to be used by concrete implementationsprotected DocValues.Source getDefaultSource(AtomicReaderContext readerContext)
readerContext
- The current reader contextCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.