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
IOException
public short shortVal(int doc) throws IOException
IOException
public float floatVal(int doc) throws IOException
IOException
public int intVal(int doc) throws IOException
IOException
public long longVal(int doc) throws IOException
IOException
public double doubleVal(int doc) throws IOException
IOException
public String strVal(int doc) throws IOException
IOException
public boolean boolVal(int doc) throws IOException
IOException
public boolean bytesVal(int doc, BytesRefBuilder target) throws IOException
IOException
public Object objectVal(int doc) throws IOException
IOException
public boolean exists(int doc) throws IOException
IOException
public int ordVal(int doc) throws IOException
doc
- The doc to retrieve to sort ordinal forIOException
public int numOrd()
public abstract String toString(int doc) throws IOException
IOException
public FunctionValues.ValueFiller getValueFiller()
public void byteVal(int doc, byte[] vals) throws IOException
IOException
public void shortVal(int doc, short[] vals) throws IOException
IOException
public void floatVal(int doc, float[] vals) throws IOException
IOException
public void intVal(int doc, int[] vals) throws IOException
IOException
public void longVal(int doc, long[] vals) throws IOException
IOException
public void doubleVal(int doc, double[] vals) throws IOException
IOException
public void strVal(int doc, String[] vals) throws IOException
IOException
public Explanation explain(int doc) throws IOException
IOException
public 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)
.IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.