public class TermGroupSelector extends GroupSelector<BytesRef>
GroupSelector.State
Constructor and Description |
---|
TermGroupSelector(String field)
Create a new TermGroupSelector
|
Modifier and Type | Method and Description |
---|---|
GroupSelector.State |
advanceTo(int doc)
Advance the GroupSelector's iterator to the given document
|
BytesRef |
copyValue() |
BytesRef |
currentValue()
Get the group value of the current document
N.B.
|
void |
setGroups(Collection<SearchGroup<BytesRef>> searchGroups)
Set a restriction on the group values returned by this selector
If the selector is positioned on a document whose group value is not contained
within this set, then
GroupSelector.advanceTo(int) will return GroupSelector.State.SKIP |
void |
setNextReader(LeafReaderContext readerContext)
Set the LeafReaderContext
|
public TermGroupSelector(String field)
field
- the SortedDocValues field to use for groupingpublic void setNextReader(LeafReaderContext readerContext) throws IOException
GroupSelector
setNextReader
in class GroupSelector<BytesRef>
IOException
public GroupSelector.State advanceTo(int doc) throws IOException
GroupSelector
advanceTo
in class GroupSelector<BytesRef>
IOException
public BytesRef currentValue()
GroupSelector
GroupSelector.copyValue()
currentValue
in class GroupSelector<BytesRef>
public BytesRef copyValue()
copyValue
in class GroupSelector<BytesRef>
public void setGroups(Collection<SearchGroup<BytesRef>> searchGroups)
GroupSelector
GroupSelector.advanceTo(int)
will return GroupSelector.State.SKIP
setGroups
in class GroupSelector<BytesRef>
searchGroups
- a set of SearchGroup
objects to limit selections toCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.