Package com.yahoo.document
Class ReferenceDataType
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.document.DataType
com.yahoo.document.ReferenceDataType
- All Implemented Interfaces:
Cloneable
,Comparable<DataType>
A
ReferenceDataType
specifies a particular concrete document type that a
ReferenceFieldValue
instance binds to.- Author:
- vekterli
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Creates a new, empty FieldValue of this typestatic ReferenceDataType
createWithInferredId
(DocumentType targetType) Creates a new type where the numeric ID is based on the hash of targetTypeboolean
Class<? extends ReferenceFieldValue>
boolean
isValueCompatible
(FieldValue value) Methods inherited from class com.yahoo.document.DataType
buildFieldPath, clone, createByReflection, createFieldValue, getArray, getCode, getId, getMap, getName, getPrimitiveType, getTensor, getWeightedSet, getWeightedSet, hashCode, isAssignableFrom, isMultivalue, isRegistered, lastPredefinedDataTypeId, register, register, setId, setName, toString, visitMembers
Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, onDeserialize, onGetClassId, onSerialize, putUtf8, registerClass, registerClass, serialize, serializeOptional, serializeWithId
Methods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
ReferenceDataType
-
-
Method Details
-
createWithInferredId
Creates a new type where the numeric ID is based on the hash of targetType -
getTargetType
-
createFieldValue
Description copied from class:DataType
Creates a new, empty FieldValue of this type- Specified by:
createFieldValue
in classDataType
-
getValueClass
- Specified by:
getValueClass
in classDataType
-
isValueCompatible
- Specified by:
isValueCompatible
in classDataType
-
compareTo
- Specified by:
compareTo
in interfaceComparable<DataType>
- Overrides:
compareTo
in classDataType
-
equals
-