Package com.yahoo.documentmodel
Class NewDocumentReferenceDataType
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.document.DataType
com.yahoo.documentmodel.NewDocumentReferenceDataType
- All Implemented Interfaces:
Cloneable,Comparable<com.yahoo.document.DataType>
public final class NewDocumentReferenceDataType
extends com.yahoo.document.DataType
Model for ReferenceDataType which is more suitable when
we want to end up with NewDocumentType as target type.
- Author:
- arnej
-
Field Summary
Fields inherited from class com.yahoo.document.DataType
BOOL, BYTE, classId, DOCUMENT, DOUBLE, FLOAT, FLOAT16, INT, LONG, NONE, PREDICATE, RAW, STRING, TAG, tensorDataTypeCode, URI -
Constructor Summary
ConstructorsConstructorDescriptionNewDocumentReferenceDataType(com.yahoo.document.DocumentType document) NewDocumentReferenceDataType(NewDocumentType document) -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.document.datatypes.FieldValuebooleanstatic NewDocumentReferenceDataTypeforDocumentName(String documentName) com.yahoo.document.StructuredDataTypeintClass<? extends com.yahoo.document.datatypes.ReferenceFieldValue>booleanbooleanisValueCompatible(com.yahoo.document.datatypes.FieldValue value) toString()Methods inherited from class com.yahoo.document.DataType
buildFieldPath, clone, compareTo, createByReflection, createFieldValue, getArray, getCode, getId, getMap, getName, getNestedType, getPrimitiveType, getTensor, getWeightedSet, getWeightedSet, hashCode, isAssignableFrom, isAssignableTo, isMultivalue, isRegistered, lastPredefinedDataTypeId, register, register, setId, setName, 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
-
Constructor Details
-
NewDocumentReferenceDataType
public NewDocumentReferenceDataType(com.yahoo.document.DocumentType document) -
NewDocumentReferenceDataType
-
-
Method Details
-
forDocumentName
-
isTemporary
public boolean isTemporary() -
getTargetType
public com.yahoo.document.StructuredDataType getTargetType() -
getTargetTypeName
-
getTargetTypeId
public int getTargetTypeId() -
createFieldValue
public com.yahoo.document.datatypes.FieldValue createFieldValue()- Specified by:
createFieldValuein classcom.yahoo.document.DataType
-
getValueClass
- Specified by:
getValueClassin classcom.yahoo.document.DataType
-
isValueCompatible
public boolean isValueCompatible(com.yahoo.document.datatypes.FieldValue value) - Specified by:
isValueCompatiblein classcom.yahoo.document.DataType
-
equals
- Overrides:
equalsin classcom.yahoo.document.DataType
-
toString
- Overrides:
toStringin classcom.yahoo.document.DataType
-