public class ValueSourceGroupSelector extends GroupSelector<MutableValue>
GroupSelector.State| Constructor and Description |
|---|
ValueSourceGroupSelector(ValueSource valueSource,
Map<?,?> context)
Create a new ValueSourceGroupSelector
|
| Modifier and Type | Method and Description |
|---|---|
GroupSelector.State |
advanceTo(int doc)
Advance the GroupSelector's iterator to the given document
|
MutableValue |
copyValue() |
MutableValue |
currentValue()
Get the group value of the current document
N.B.
|
void |
setGroups(Collection<SearchGroup<MutableValue>> 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 ValueSourceGroupSelector(ValueSource valueSource, Map<?,?> context)
valueSource - the ValueSource to group bycontext - a context map for the ValueSourcepublic void setNextReader(LeafReaderContext readerContext) throws IOException
GroupSelectorsetNextReader in class GroupSelector<MutableValue>IOExceptionpublic GroupSelector.State advanceTo(int doc) throws IOException
GroupSelectoradvanceTo in class GroupSelector<MutableValue>IOExceptionpublic MutableValue currentValue()
GroupSelectorGroupSelector.copyValue()currentValue in class GroupSelector<MutableValue>public MutableValue copyValue()
copyValue in class GroupSelector<MutableValue>public void setGroups(Collection<SearchGroup<MutableValue>> searchGroups)
GroupSelectorGroupSelector.advanceTo(int) will return GroupSelector.State.SKIPsetGroups in class GroupSelector<MutableValue>searchGroups - a set of SearchGroup objects to limit selections toCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.