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

    Constructors
    Constructor
    Description
    NewDocumentReferenceDataType(com.yahoo.document.DocumentType document)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.yahoo.document.datatypes.FieldValue
     
    boolean
     
    forDocumentName(String documentName)
     
    com.yahoo.document.StructuredDataType
     
    int
     
     
    Class<? extends com.yahoo.document.datatypes.ReferenceFieldValue>
     
    boolean
     
    boolean
    isValueCompatible(com.yahoo.document.datatypes.FieldValue value)
     
     

    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

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NewDocumentReferenceDataType

      public NewDocumentReferenceDataType(com.yahoo.document.DocumentType document)
    • NewDocumentReferenceDataType

      public NewDocumentReferenceDataType(NewDocumentType document)
  • Method Details

    • forDocumentName

      public static NewDocumentReferenceDataType forDocumentName(String documentName)
    • isTemporary

      public boolean isTemporary()
    • getTargetType

      public com.yahoo.document.StructuredDataType getTargetType()
    • getTargetTypeName

      public String getTargetTypeName()
    • getTargetTypeId

      public int getTargetTypeId()
    • createFieldValue

      public com.yahoo.document.datatypes.FieldValue createFieldValue()
      Specified by:
      createFieldValue in class com.yahoo.document.DataType
    • getValueClass

      public Class<? extends com.yahoo.document.datatypes.ReferenceFieldValue> getValueClass()
      Specified by:
      getValueClass in class com.yahoo.document.DataType
    • isValueCompatible

      public boolean isValueCompatible(com.yahoo.document.datatypes.FieldValue value)
      Specified by:
      isValueCompatible in class com.yahoo.document.DataType
    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class com.yahoo.document.DataType
    • toString

      public String toString()
      Overrides:
      toString in class com.yahoo.document.DataType