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