Package org.apache.lucene.document
Class StoredValue
java.lang.Object
org.apache.lucene.document.StoredValue
Abstraction around a stored value.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionStoredValue
(double value) Ctor for double values.StoredValue
(float value) Ctor for float values.StoredValue
(int value) Ctor for integer values.StoredValue
(long value) Ctor for long values.StoredValue
(String value) Ctor for string values.StoredValue
(StoredFieldDataInput value) Ctor for data input values.StoredValue
(BytesRef value) Ctor for binary values. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a binary value.Retrieve a data input value.double
Retrieve a double value.float
Retrieve a float value.int
Retrieve an integer value.long
Retrieve a long value.Retrieve a string value.getType()
Retrieve the type of the stored value.void
setBinaryValue
(BytesRef value) Set a binary value.void
Set a data input value.void
setDoubleValue
(double value) Set a double value.void
setFloatValue
(float value) Set a float value.void
setIntValue
(int value) Set an integer value.void
setLongValue
(long value) Set a long value.void
setStringValue
(String value) Set a string value.
-
Constructor Details
-
StoredValue
public StoredValue(int value) Ctor for integer values. -
StoredValue
public StoredValue(long value) Ctor for long values. -
StoredValue
public StoredValue(float value) Ctor for float values. -
StoredValue
public StoredValue(double value) Ctor for double values. -
StoredValue
Ctor for binary values. -
StoredValue
Ctor for data input values. -
StoredValue
Ctor for string values.
-
-
Method Details
-
getType
Retrieve the type of the stored value. -
setIntValue
public void setIntValue(int value) Set an integer value. -
setLongValue
public void setLongValue(long value) Set a long value. -
setFloatValue
public void setFloatValue(float value) Set a float value. -
setDoubleValue
public void setDoubleValue(double value) Set a double value. -
setBinaryValue
Set a binary value. -
setDataInputValue
Set a data input value. -
setStringValue
Set a string value. -
getIntValue
public int getIntValue()Retrieve an integer value. -
getLongValue
public long getLongValue()Retrieve a long value. -
getFloatValue
public float getFloatValue()Retrieve a float value. -
getDoubleValue
public double getDoubleValue()Retrieve a double value. -
getBinaryValue
Retrieve a binary value. -
getDataInputValue
Retrieve a data input value. -
getStringValue
Retrieve a string value.
-