public abstract class FunctionValues extends Object
ValueSource for a particular field and reader.| Modifier and Type | Class and Description |
|---|---|
static class |
FunctionValues.ValueFiller
Abstraction of the logic required to fill the value of a specified doc into
a reusable
MutableValue. |
| Constructor and Description |
|---|
FunctionValues() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
boolVal(int doc) |
boolean |
bytesVal(int doc,
BytesRefBuilder target)
returns the bytes representation of the string val - TODO: should this return the indexed raw bytes not?
|
byte |
byteVal(int doc) |
void |
byteVal(int doc,
byte[] vals) |
double |
doubleVal(int doc) |
void |
doubleVal(int doc,
double[] vals) |
boolean |
exists(int doc)
Returns true if there is a value for this document
|
Explanation |
explain(int doc) |
float |
floatVal(int doc) |
void |
floatVal(int doc,
float[] vals) |
ValueSourceScorer |
getRangeScorer(Weight weight,
LeafReaderContext readerContext,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper)
Yields a
Scorer that matches documents with values between the specified range,
and that which produces scores equal to floatVal(int). |
ValueSourceScorer |
getScorer(Weight weight,
LeafReaderContext readerContext)
Yields a
Scorer that matches all documents,
and that which produces scores equal to floatVal(int). |
FunctionValues.ValueFiller |
getValueFiller() |
int |
intVal(int doc) |
void |
intVal(int doc,
int[] vals) |
long |
longVal(int doc) |
void |
longVal(int doc,
long[] vals) |
int |
numOrd() |
Object |
objectVal(int doc)
Native Java Object representation of the value
|
int |
ordVal(int doc) |
short |
shortVal(int doc) |
void |
shortVal(int doc,
short[] vals) |
String |
strVal(int doc) |
void |
strVal(int doc,
String[] vals) |
abstract String |
toString(int doc) |
public byte byteVal(int doc)
throws IOException
IOExceptionpublic short shortVal(int doc)
throws IOException
IOExceptionpublic float floatVal(int doc)
throws IOException
IOExceptionpublic int intVal(int doc)
throws IOException
IOExceptionpublic long longVal(int doc)
throws IOException
IOExceptionpublic double doubleVal(int doc)
throws IOException
IOExceptionpublic String strVal(int doc) throws IOException
IOExceptionpublic boolean boolVal(int doc)
throws IOException
IOExceptionpublic boolean bytesVal(int doc,
BytesRefBuilder target)
throws IOException
IOExceptionpublic Object objectVal(int doc) throws IOException
IOExceptionpublic boolean exists(int doc)
throws IOException
IOExceptionpublic int ordVal(int doc)
throws IOException
doc - The doc to retrieve to sort ordinal forIOExceptionpublic int numOrd()
public abstract String toString(int doc) throws IOException
IOExceptionpublic FunctionValues.ValueFiller getValueFiller()
public void byteVal(int doc,
byte[] vals)
throws IOException
IOExceptionpublic void shortVal(int doc,
short[] vals)
throws IOException
IOExceptionpublic void floatVal(int doc,
float[] vals)
throws IOException
IOExceptionpublic void intVal(int doc,
int[] vals)
throws IOException
IOExceptionpublic void longVal(int doc,
long[] vals)
throws IOException
IOExceptionpublic void doubleVal(int doc,
double[] vals)
throws IOException
IOExceptionpublic void strVal(int doc,
String[] vals)
throws IOException
IOExceptionpublic Explanation explain(int doc) throws IOException
IOExceptionpublic ValueSourceScorer getScorer(Weight weight, LeafReaderContext readerContext)
Scorer that matches all documents,
and that which produces scores equal to floatVal(int).public ValueSourceScorer getRangeScorer(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) throws IOException
Scorer that matches documents with values between the specified range,
and that which produces scores equal to floatVal(int).IOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.