T
- the type of the group valuepublic abstract class GroupSelector<T> extends Object
setNextReader(LeafReaderContext)
, and then advanceTo(int)
for each matching document.Modifier and Type | Class and Description |
---|---|
static class |
GroupSelector.State
What to do with the current value
|
Constructor and Description |
---|
GroupSelector() |
Modifier and Type | Method and Description |
---|---|
abstract GroupSelector.State |
advanceTo(int doc)
Advance the GroupSelector's iterator to the given document
|
abstract T |
copyValue() |
abstract T |
currentValue()
Get the group value of the current document
N.B.
|
abstract void |
setGroups(Collection<SearchGroup<T>> groups)
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
advanceTo(int) will return GroupSelector.State.SKIP |
abstract void |
setNextReader(LeafReaderContext readerContext)
Set the LeafReaderContext
|
public abstract void setNextReader(LeafReaderContext readerContext) throws IOException
IOException
public abstract GroupSelector.State advanceTo(int doc) throws IOException
IOException
public abstract T currentValue()
copyValue()
public abstract T copyValue()
public abstract void setGroups(Collection<SearchGroup<T>> groups)
advanceTo(int)
will return GroupSelector.State.SKIP
groups
- a set of SearchGroup
objects to limit selections toCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.