public static class ValuesSource.Numeric.Script extends ValuesSource.Numeric
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.NumericValuesSource.Numeric.FieldData, ValuesSource.Numeric.Script, ValuesSource.Numeric.WithScriptEMPTY| Constructor | Description |
|---|---|
Script(SearchScript.LeafFactory script,
ValueType scriptValueType) |
| Modifier and Type | Method | Description |
|---|---|---|
SortedBinaryDocValues |
bytesValues(org.apache.lucene.index.LeafReaderContext context) |
Get the current
ValuesSource.WithScript.BytesValues. |
SortedNumericDoubleValues |
doubleValues(org.apache.lucene.index.LeafReaderContext context) |
Get the current
SortedNumericDoubleValues. |
boolean |
isFloatingPoint() |
Whether the underlying data is floating-point or not.
|
org.apache.lucene.index.SortedNumericDocValues |
longValues(org.apache.lucene.index.LeafReaderContext context) |
Get the current
SortedNumericDocValues. |
boolean |
needsScores() |
Whether this values source needs scores.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdocsWithValuepublic Script(SearchScript.LeafFactory script, ValueType scriptValueType)
public boolean isFloatingPoint()
ValuesSource.NumericisFloatingPoint in class ValuesSource.Numericpublic org.apache.lucene.index.SortedNumericDocValues longValues(org.apache.lucene.index.LeafReaderContext context)
throws java.io.IOException
ValuesSource.NumericSortedNumericDocValues.longValues in class ValuesSource.Numericjava.io.IOExceptionpublic SortedNumericDoubleValues doubleValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException
ValuesSource.NumericSortedNumericDoubleValues.doubleValues in class ValuesSource.Numericjava.io.IOExceptionpublic SortedBinaryDocValues bytesValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException
ValuesSourceValuesSource.WithScript.BytesValues.bytesValues in class ValuesSourcejava.io.IOExceptionpublic boolean needsScores()
ValuesSourceneedsScores in class ValuesSource