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
|
abstract void |
setScorer(Scorable scorer)
Set the current Scorer
|
public abstract void setNextReader(LeafReaderContext readerContext) throws IOException
IOExceptionpublic abstract void setScorer(Scorable scorer) throws IOException
IOExceptionpublic abstract GroupSelector.State advanceTo(int doc) throws IOException
IOExceptionpublic abstract T currentValue() throws IOException
copyValue()IOExceptionpublic abstract T copyValue() throws IOException
IOExceptionpublic abstract void setGroups(Collection<SearchGroup<T>> groups)
advanceTo(int) will return GroupSelector.State.SKIPgroups - a set of SearchGroup objects to limit selections toCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.