Package com.yahoo.document.datatypes
Class DoubleFieldValue
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.document.datatypes.FieldValue
com.yahoo.document.datatypes.NumericFieldValue
com.yahoo.document.datatypes.DoubleFieldValue
- All Implemented Interfaces:
Cloneable,Comparable<FieldValue>
A 64-bit float field value
- Author:
- Einar M R Rosenvinge
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAssign this non-fieldvalue value to this field value.voidclear()clone()intcompareTo(FieldValue fieldValue) voiddeserialize(Field field, FieldReader reader) Read a field value from the specified readerbooleandoublestatic PrimitiveDataType.FactoryUsed to retrieve wrapped type for simple types, such that you can use get methods to retrieve ints and floats directly instead of Int/Float field values.inthashCode()voidDeprecated.voidserialize(Field field, FieldWriter writer) Write out field value to the specified writertoString()Methods inherited from class com.yahoo.document.datatypes.FieldValue
create, deserialize, getRecursiveValue, getRecursiveValue, onDeserialize, onSerialize, serialize, toXmlMethods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, onGetClassId, putUtf8, registerClass, registerClass, serialize, serializeOptional, serializeWithId, visitMembersMethods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
DoubleFieldValue
public DoubleFieldValue() -
DoubleFieldValue
public DoubleFieldValue(double value) -
DoubleFieldValue
-
DoubleFieldValue
-
-
Method Details
-
getFactory
-
clone
- Overrides:
clonein classFieldValue
-
clear
public void clear()- Specified by:
clearin classFieldValue
-
getNumber
- Specified by:
getNumberin classNumericFieldValue
-
assign
Description copied from class:FieldValueAssign this non-fieldvalue value to this field value. This is used to be able to assign ints to Integer field values and List to Array field values and such.Override to accept the specific types that should be legal.
- Specified by:
assignin classFieldValue
-
getDouble
public double getDouble() -
getWrappedValue
Description copied from class:FieldValueUsed to retrieve wrapped type for simple types, such that you can use get methods to retrieve ints and floats directly instead of Int/Float field values. Complex types that can't be specified by simple java types just return themselves.- Overrides:
getWrappedValuein classFieldValue
-
getDataType
- Specified by:
getDataTypein classFieldValue
-
printXml
Deprecated.- Specified by:
printXmlin classFieldValue
-
toString
- Overrides:
toStringin classcom.yahoo.vespa.objects.Identifiable
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.yahoo.vespa.objects.Identifiable
-
equals
- Overrides:
equalsin classcom.yahoo.vespa.objects.Identifiable
-
serialize
Description copied from class:FieldValueWrite out field value to the specified writer- Specified by:
serializein classFieldValue
-
deserialize
Description copied from class:FieldValueRead a field value from the specified reader- Specified by:
deserializein classFieldValue
-
compareTo
- Specified by:
compareToin interfaceComparable<FieldValue>- Overrides:
compareToin classFieldValue
-