Class VespaDocumentDeserializer6

java.lang.Object
com.yahoo.vespa.objects.BufferSerializer
com.yahoo.document.serialization.VespaDocumentDeserializer6
All Implemented Interfaces:
AnnotationReader, DocumentDeserializer, DocumentReader, DocumentUpdateReader, FieldReader, SpanNodeReader, SpanTreeReader, com.yahoo.vespa.objects.Deserializer, com.yahoo.vespa.objects.Serializer
Direct Known Subclasses:
VespaDocumentDeserializerHead

@Deprecated(forRemoval=true) public class VespaDocumentDeserializer6 extends com.yahoo.vespa.objects.BufferSerializer implements DocumentDeserializer
Deprecated, for removal: This API element is subject to removal in a future version.
Class used for de-serializing documents on the Vespa 6.x document format.
Author:
baldersheim
  • Field Summary

    Fields inherited from class com.yahoo.vespa.objects.BufferSerializer

    buf
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    read(AlternateSpanList altSpanList)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    read(Annotation annotation)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    read(Span span)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    read(SpanList spanList)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    read(SpanTree tree)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    read(Document document)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read a document
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    read(FieldUpdate fieldUpdate)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    read(com.yahoo.vespa.objects.FieldBase field, AnnotationReference value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of annotation reference.
    <T extends FieldValue>
    void
    read(com.yahoo.vespa.objects.FieldBase field, Array<T> array)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of array field
    void
    read(com.yahoo.vespa.objects.FieldBase field, BoolFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of byte field
    void
    read(com.yahoo.vespa.objects.FieldBase field, ByteFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of byte field
    <T extends FieldValue>
    void
    read(com.yahoo.vespa.objects.FieldBase field, CollectionFieldValue<T> value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of collection field
    void
    read(com.yahoo.vespa.objects.FieldBase field, DoubleFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of double field
    void
    read(com.yahoo.vespa.objects.FieldBase field, FieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of field
    void
    read(com.yahoo.vespa.objects.FieldBase field, FloatFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of float field
    void
    read(com.yahoo.vespa.objects.FieldBase field, IntegerFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of integer field
    void
    read(com.yahoo.vespa.objects.FieldBase field, LongFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of long field
    <K extends FieldValue, V extends FieldValue>
    void
    read(com.yahoo.vespa.objects.FieldBase field, MapFieldValue<K,V> map)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read the value of a map field
    void
    read(com.yahoo.vespa.objects.FieldBase field, PredicateFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of predicate field
    void
    read(com.yahoo.vespa.objects.FieldBase field, Raw value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of raw field
    void
    read(com.yahoo.vespa.objects.FieldBase field, ReferenceFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of the given reference field.
    void
    read(com.yahoo.vespa.objects.FieldBase field, StringFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of string field
    void
    read(com.yahoo.vespa.objects.FieldBase fieldDef, Struct s)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of struct field
    void
    read(com.yahoo.vespa.objects.FieldBase field, StructuredFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of structured field
    void
    read(com.yahoo.vespa.objects.FieldBase field, TensorFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of the given tensor field.
    <T extends FieldValue>
    void
    read(com.yahoo.vespa.objects.FieldBase field, WeightedSet<T> ws)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of weighted set field
    void
    read(com.yahoo.vespa.objects.FieldBase field, Document doc)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read in the value of field
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected ValueUpdate
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected ValueUpdate
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected ValueUpdate
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class com.yahoo.vespa.objects.BufferSerializer

    createUTF8CharArray, flip, getBuf, getByte, getBytes, getDouble, getFloat, getInt, getInt1_2_4Bytes, getInt1_4Bytes, getInt2_4_8Bytes, getLong, getShort, getString, order, order, position, position, put, put, put, putByte, putDouble, putFloat, putInt, putInt1_4Bytes, putInt2_4_8Bytes, putLong, putShort, remaining, setBuf, wrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.yahoo.vespa.objects.Deserializer

    getByte, getBytes, getDouble, getFloat, getInt, getLong, getShort, getString

    Methods inherited from interface com.yahoo.document.serialization.DocumentDeserializer

    getBuf
  • Method Details

    • getTypeRepo

      public DocumentTypeManager getTypeRepo()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getTypeRepo in interface DocumentDeserializer
    • read

      public void read(Document document)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: DocumentReader
      Read a document
      Specified by:
      read in interface DocumentReader
      Parameters:
      document - - document to be read
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, Document doc)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      doc - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, FieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public <T extends FieldValue> void read(com.yahoo.vespa.objects.FieldBase field, Array<T> array)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of array field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      array - - field value
    • read

      public <K extends FieldValue, V extends FieldValue> void read(com.yahoo.vespa.objects.FieldBase field, MapFieldValue<K,V> map)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read the value of a map field
      Specified by:
      read in interface FieldReader
    • read

      public <T extends FieldValue> void read(com.yahoo.vespa.objects.FieldBase field, CollectionFieldValue<T> value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of collection field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, ByteFieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of byte field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, BoolFieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of byte field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, DoubleFieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of double field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, FloatFieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of float field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, IntegerFieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of integer field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, LongFieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of long field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, Raw value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of raw field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, PredicateFieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of predicate field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, StringFieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of string field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, TensorFieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of the given tensor field.
      Specified by:
      read in interface FieldReader
      Parameters:
      field - field description (name and data type)
      value - tensor field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, ReferenceFieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of the given reference field.
      Specified by:
      read in interface FieldReader
      Parameters:
      field - field description (name and data type)
      value - reference field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase fieldDef, Struct s)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of struct field
      Specified by:
      read in interface FieldReader
      Parameters:
      fieldDef - - field description (name and data type)
      s - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, StructuredFieldValue value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of structured field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public <T extends FieldValue> void read(com.yahoo.vespa.objects.FieldBase field, WeightedSet<T> ws)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of weighted set field
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      ws - - field value
    • read

      public void read(com.yahoo.vespa.objects.FieldBase field, AnnotationReference value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: FieldReader
      Read in the value of annotation reference.
      Specified by:
      read in interface FieldReader
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • read

      public void read(DocumentUpdate update)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface DocumentUpdateReader
    • read

      public void read(FieldPathUpdate update)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface DocumentUpdateReader
    • read

      public void read(AssignFieldPathUpdate update)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface DocumentUpdateReader
    • read

      public void read(RemoveFieldPathUpdate update)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface DocumentUpdateReader
    • read

      public void read(AddFieldPathUpdate update)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface DocumentUpdateReader
    • read

      public void read(FieldUpdate fieldUpdate)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface DocumentUpdateReader
    • readDocumentId

      public DocumentId readDocumentId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      readDocumentId in interface DocumentReader
      Specified by:
      readDocumentId in interface DocumentUpdateReader
    • readDocumentType

      public DocumentType readDocumentType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      readDocumentType in interface DocumentReader
      Specified by:
      readDocumentType in interface DocumentUpdateReader
    • read

      public void read(SpanTree tree)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface SpanTreeReader
    • read

      public void read(Annotation annotation)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface AnnotationReader
    • read

      public void read(Span span)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface SpanNodeReader
    • read

      public void read(SpanList spanList)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface SpanNodeReader
    • read

      public void read(AlternateSpanList altSpanList)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface SpanNodeReader
    • readTensorModifyUpdate

      protected ValueUpdate readTensorModifyUpdate(DataType type)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • readTensorAddUpdate

      protected ValueUpdate readTensorAddUpdate(DataType type)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • readTensorRemoveUpdate

      protected ValueUpdate readTensorRemoveUpdate(DataType type)
      Deprecated, for removal: This API element is subject to removal in a future version.