|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.queries.function.FunctionValues
public abstract class FunctionValues
Represents field values as different types.
Normally created via a ValueSource
for a particular field and reader.
Nested Class Summary | |
---|---|
static class |
FunctionValues.ValueFiller
Abstraction of the logic required to fill the value of a specified doc into a reusable MutableValue . |
Constructor Summary | |
---|---|
FunctionValues()
|
Method Summary | |
---|---|
boolean |
boolVal(int doc)
|
boolean |
bytesVal(int doc,
BytesRef 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(IndexReader reader,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper)
|
ValueSourceScorer |
getScorer(IndexReader reader)
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctionValues()
Method Detail |
---|
public byte byteVal(int doc)
public short shortVal(int doc)
public float floatVal(int doc)
public int intVal(int doc)
public long longVal(int doc)
public double doubleVal(int doc)
public String strVal(int doc)
public boolean boolVal(int doc)
public boolean bytesVal(int doc, BytesRef target)
public Object objectVal(int doc)
public boolean exists(int doc)
public int ordVal(int doc)
doc
- The doc to retrieve to sort ordinal for
public int numOrd()
public abstract String toString(int doc)
public FunctionValues.ValueFiller getValueFiller()
public void byteVal(int doc, byte[] vals)
public void shortVal(int doc, short[] vals)
public void floatVal(int doc, float[] vals)
public void intVal(int doc, int[] vals)
public void longVal(int doc, long[] vals)
public void doubleVal(int doc, double[] vals)
public void strVal(int doc, String[] vals)
public Explanation explain(int doc)
public ValueSourceScorer getScorer(IndexReader reader)
public ValueSourceScorer getRangeScorer(IndexReader reader, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |