org.elasticsearch.index.field.data.longs
Class LongFieldData
java.lang.Object
org.elasticsearch.index.field.data.FieldData<Doc>
org.elasticsearch.index.field.data.NumericFieldData<LongDocFieldData>
org.elasticsearch.index.field.data.longs.LongFieldData
- Direct Known Subclasses:
- MultiValueLongFieldData, SingleValueLongFieldData
public abstract class LongFieldData
- extends NumericFieldData<LongDocFieldData>
Field Summary |
protected long[] |
values
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
values
protected final long[] values
LongFieldData
protected LongFieldData(String fieldName,
long[] values)
computeSizeInBytes
protected long computeSizeInBytes()
- Specified by:
computeSizeInBytes
in class FieldData<LongDocFieldData>
values
public final long[] values()
value
public abstract long value(int docId)
values
public abstract long[] values(int docId)
date
public org.joda.time.MutableDateTime date(int docId)
date
public void date(int docId,
org.joda.time.MutableDateTime dateTime)
dates
public abstract org.joda.time.MutableDateTime[] dates(int docId)
docFieldData
public LongDocFieldData docFieldData(int docId)
- Overrides:
docFieldData
in class NumericFieldData<LongDocFieldData>
createFieldData
protected LongDocFieldData createFieldData()
- Specified by:
createFieldData
in class FieldData<LongDocFieldData>
forEachValue
public void forEachValue(FieldData.StringValueProc proc)
- Specified by:
forEachValue
in class FieldData<LongDocFieldData>
stringValue
public String stringValue(int docId)
- Specified by:
stringValue
in class FieldData<LongDocFieldData>
byteValue
public byte byteValue(int docId)
- Description copied from class:
NumericFieldData
- Returns the value of the specified number as a
byte
.
This may involve rounding or truncation.
- Overrides:
byteValue
in class NumericFieldData<LongDocFieldData>
- Returns:
- the numeric value represented by this object after conversion
to type
byte
.
shortValue
public short shortValue(int docId)
- Description copied from class:
NumericFieldData
- Returns the value of the specified number as a
short
.
This may involve rounding or truncation.
- Overrides:
shortValue
in class NumericFieldData<LongDocFieldData>
- Returns:
- the numeric value represented by this object after conversion
to type
short
.
intValue
public int intValue(int docId)
- Description copied from class:
NumericFieldData
- Returns the value of the specified number as an
int
.
This may involve rounding or truncation.
- Specified by:
intValue
in class NumericFieldData<LongDocFieldData>
- Returns:
- the numeric value represented by this object after conversion
to type
int
.
longValue
public long longValue(int docId)
- Description copied from class:
NumericFieldData
- Returns the value of the specified number as a
long
.
This may involve rounding or truncation.
- Specified by:
longValue
in class NumericFieldData<LongDocFieldData>
- Returns:
- the numeric value represented by this object after conversion
to type
long
.
floatValue
public float floatValue(int docId)
- Description copied from class:
NumericFieldData
- Returns the value of the specified number as a
float
.
This may involve rounding.
- Specified by:
floatValue
in class NumericFieldData<LongDocFieldData>
- Returns:
- the numeric value represented by this object after conversion
to type
float
.
doubleValue
public double doubleValue(int docId)
- Description copied from class:
NumericFieldData
- Returns the value of the specified number as a
double
.
This may involve rounding.
- Specified by:
doubleValue
in class NumericFieldData<LongDocFieldData>
- Returns:
- the numeric value represented by this object after conversion
to type
double
.
type
public FieldDataType type()
- Description copied from class:
FieldData
- The type of this field data.
- Specified by:
type
in class FieldData<LongDocFieldData>
forEachValue
public void forEachValue(LongFieldData.ValueProc proc)
forEachValueInDoc
public abstract void forEachValueInDoc(int docId,
LongFieldData.ValueInDocProc proc)
forEachValueInDoc
public abstract void forEachValueInDoc(int docId,
LongFieldData.DateValueInDocProc proc)
forEachValueInDoc
public abstract void forEachValueInDoc(int docId,
org.joda.time.MutableDateTime dateTime,
LongFieldData.DateValueInDocProc proc)
load
public static LongFieldData load(org.apache.lucene.index.IndexReader reader,
String field)
throws IOException
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.