Package com.yahoo.document
Class NumericDataType
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.document.DataType
com.yahoo.document.PrimitiveDataType
com.yahoo.document.NumericDataType
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<DataType>
- Author:
- Einar M R Rosenvinge
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.document.PrimitiveDataType
PrimitiveDataType.Factory
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
NumericDataType
(String name, int code, Class<? extends FieldValue> type, PrimitiveDataType.Factory factory) Creates a datatype -
Method Summary
Methods inherited from class com.yahoo.document.PrimitiveDataType
createFieldValue, createFieldValue, getPrimitiveType, getValueClass, isValueCompatible, visitMembers
Methods inherited from class com.yahoo.document.DataType
buildFieldPath, compareTo, createByReflection, equals, getArray, getCode, getId, getMap, getName, getTensor, getWeightedSet, getWeightedSet, hashCode, isAssignableFrom, isMultivalue, isRegistered, lastPredefinedDataTypeId, register, register, setId, setName, toString
Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, onDeserialize, onGetClassId, onSerialize, putUtf8, registerClass, serialize, serializeOptional, serializeWithId
Methods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static int classId
-
-
Constructor Details
-
NumericDataType
protected NumericDataType(String name, int code, Class<? extends FieldValue> type, PrimitiveDataType.Factory factory) Creates a datatype- Parameters:
name
- the name of the typecode
- the code (id) of the typetype
- the field value used for this type
-
-
Method Details
-
clone
- Overrides:
clone
in classPrimitiveDataType
-