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
ConstructorDescriptionNewDocumentReferenceDataType
(com.yahoo.document.DocumentType document) NewDocumentReferenceDataType
(NewDocumentType document) -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.document.datatypes.FieldValue
boolean
static NewDocumentReferenceDataType
forDocumentName
(String documentName) com.yahoo.document.StructuredDataType
int
Class<? extends com.yahoo.document.datatypes.ReferenceFieldValue>
boolean
boolean
isValueCompatible
(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, getPrimitiveType, getTensor, getWeightedSet, getWeightedSet, hashCode, isAssignableFrom, isMultivalue, isRegistered, lastPredefinedDataTypeId, register, register, setId, setName, visitMembers
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
-
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:
createFieldValue
in classcom.yahoo.document.DataType
-
getValueClass
- Specified by:
getValueClass
in classcom.yahoo.document.DataType
-
isValueCompatible
public boolean isValueCompatible(com.yahoo.document.datatypes.FieldValue value) - Specified by:
isValueCompatible
in classcom.yahoo.document.DataType
-
equals
- Overrides:
equals
in classcom.yahoo.document.DataType
-
toString
- Overrides:
toString
in classcom.yahoo.document.DataType
-