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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCreates a new, empty FieldValue of this typestatic ReferenceDataTypecreateWithInferredId(DocumentType targetType) Creates a new type where the numeric ID is based on the hash of targetTypebooleanClass<? extends ReferenceFieldValue>booleanisValueCompatible(FieldValue value) Methods inherited from class com.yahoo.document.DataType
buildFieldPath, clone, createByReflection, createFieldValue, getArray, getCode, getId, getMap, getName, getNestedType, getPrimitiveType, getTensor, getWeightedSet, getWeightedSet, hashCode, isAssignableFrom, isAssignableTo, isMultivalue, isRegistered, lastPredefinedDataTypeId, register, register, setId, setName, toString, visitMembersMethods 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, serializeWithIdMethods 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:DataTypeCreates a new, empty FieldValue of this type- Specified by:
createFieldValuein classDataType
-
getValueClass
- Specified by:
getValueClassin classDataType
-
isValueCompatible
- Specified by:
isValueCompatiblein classDataType
-
compareTo
- Specified by:
compareToin interfaceComparable<DataType>- Overrides:
compareToin classDataType
-
equals
-