public class LongRangeGroupSelector extends GroupSelector<LongRange>
GroupSelector.State| Constructor and Description |
|---|
LongRangeGroupSelector(LongValuesSource source,
LongRangeFactory rangeFactory)
Creates a new LongRangeGroupSelector
|
| Modifier and Type | Method and Description |
|---|---|
GroupSelector.State |
advanceTo(int doc)
Advance the GroupSelector's iterator to the given document
|
LongRange |
copyValue() |
LongRange |
currentValue()
Get the group value of the current document
N.B.
|
void |
setGroups(Collection<SearchGroup<LongRange>> 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
|
void |
setScorer(Scorable scorer)
Set the current Scorer
|
public LongRangeGroupSelector(LongValuesSource source, LongRangeFactory rangeFactory)
source - a LongValuesSource to retrieve long values per documentrangeFactory - a LongRangeFactory that defines how to group the long values into range bucketspublic void setNextReader(LeafReaderContext readerContext) throws IOException
GroupSelectorsetNextReader in class GroupSelector<LongRange>IOExceptionpublic void setScorer(Scorable scorer) throws IOException
GroupSelectorsetScorer in class GroupSelector<LongRange>IOExceptionpublic GroupSelector.State advanceTo(int doc) throws IOException
GroupSelectoradvanceTo in class GroupSelector<LongRange>IOExceptionpublic LongRange currentValue() throws IOException
GroupSelectorGroupSelector.copyValue()currentValue in class GroupSelector<LongRange>IOExceptionpublic LongRange copyValue() throws IOException
copyValue in class GroupSelector<LongRange>IOExceptionpublic void setGroups(Collection<SearchGroup<LongRange>> searchGroups)
GroupSelectorGroupSelector.advanceTo(int) will return GroupSelector.State.SKIPsetGroups in class GroupSelector<LongRange>searchGroups - a set of SearchGroup objects to limit selections toCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.