public class ScriptDoubleValues extends SortingNumericDoubleValues implements ScorerAware
SortingNumericDoubleValues implementation which is based on a scriptvalues| Constructor and Description |
|---|
ScriptDoubleValues(SearchScript script) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
advanceExact(int target)
Advance the iterator to exactly
target and return whether
target has a value. |
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
docValueCount, nextValue, resize, sortpublic ScriptDoubleValues(SearchScript script)
public boolean advanceExact(int target)
throws java.io.IOException
SortedNumericDoubleValuestarget and return whether
target has a value.
target must be greater than or equal to the current
doc ID and must be a valid doc ID, ie. ≥ 0 and
< maxDoc.advanceExact in class SortedNumericDoubleValuesjava.io.IOExceptionpublic void setScorer(org.apache.lucene.search.Scorer scorer)
setScorer in interface ScorerAware