Class VespaDocumentSerializer6

java.lang.Object
com.yahoo.vespa.objects.BufferSerializer
com.yahoo.document.serialization.VespaDocumentSerializer6
All Implemented Interfaces:
AnnotationWriter, DocumentSerializer, DocumentUpdateWriter, DocumentWriter, FieldWriter, SpanNodeWriter, SpanTreeWriter, com.yahoo.vespa.objects.Deserializer, com.yahoo.vespa.objects.Serializer
Direct Known Subclasses:
VespaDocumentSerializerHead

@Deprecated(forRemoval=true) public class VespaDocumentSerializer6 extends com.yahoo.vespa.objects.BufferSerializer implements DocumentSerializer
Deprecated, for removal: This API element is subject to removal in a future version.
Class used for 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
    void
    write(AlternateSpanList altSpanList)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    write(Annotation annotation)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    write(Span span)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    write(SpanList spanList)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    write(SpanNode spanNode)
    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.
    Writes a document.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    write(DocumentRemove documentRemove)
    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
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    write(AddValueUpdate update, DataType superType)
    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
    write(AssignValueUpdate update, DataType superType)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    write(ClearValueUpdate clearValueUpdate, DataType superType)
    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
    write(MapValueUpdate update, DataType superType)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    write(RemoveValueUpdate update, DataType superType)
    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
    write(com.yahoo.vespa.objects.FieldBase field, AnnotationReference value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Writes the value of an annotation reference.
    <T extends FieldValue>
    void
    write(com.yahoo.vespa.objects.FieldBase field, Array<T> array)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of array field
    void
    write(com.yahoo.vespa.objects.FieldBase field, BoolFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Writes the value of byte field.
    void
    write(com.yahoo.vespa.objects.FieldBase field, ByteFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of byte field
    <T extends FieldValue>
    void
    write(com.yahoo.vespa.objects.FieldBase field, CollectionFieldValue<T> value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of collection field
    void
    write(com.yahoo.vespa.objects.FieldBase field, DoubleFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of double field
    void
    write(com.yahoo.vespa.objects.FieldBase field, FieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of field
    void
    write(com.yahoo.vespa.objects.FieldBase field, FloatFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of float field
    void
    write(com.yahoo.vespa.objects.FieldBase field, IntegerFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of integer field
    void
    write(com.yahoo.vespa.objects.FieldBase field, LongFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of long field
    <K extends FieldValue, V extends FieldValue>
    void
    write(com.yahoo.vespa.objects.FieldBase field, MapFieldValue<K,V> map)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Writes the value of a map field.
    void
    write(com.yahoo.vespa.objects.FieldBase field, PredicateFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Writes the value of a predicate field.
    void
    write(com.yahoo.vespa.objects.FieldBase field, Raw value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of raw field
    void
    write(com.yahoo.vespa.objects.FieldBase field, ReferenceFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Writes the value of a reference field.
    void
    write(com.yahoo.vespa.objects.FieldBase field, StringFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of string field
    void
    write(com.yahoo.vespa.objects.FieldBase field, Struct value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of struct field
    void
    write(com.yahoo.vespa.objects.FieldBase field, StructuredFieldValue s)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of structured field
    void
    write(com.yahoo.vespa.objects.FieldBase field, TensorFieldValue value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Writes the value of a tensor field.
    <T extends FieldValue>
    void
    write(com.yahoo.vespa.objects.FieldBase field, WeightedSet<T> ws)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Write out the value of weighted set field
    void
    write(com.yahoo.vespa.objects.FieldBase field, Document doc)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Writes the value of a field.

    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.document.serialization.DocumentSerializer

    getBuf

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

    put, put, put, putByte, putDouble, putFloat, putInt, putLong, putShort
  • Method Details

    • write

      public void write(Document doc)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: DocumentWriter
      Writes a document.
      Specified by:
      write in interface DocumentWriter
    • write

      public void write(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: FieldWriter
      Writes the value of a field.
      Specified by:
      write in interface FieldWriter
    • write

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

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

      public <K extends FieldValue, V extends FieldValue> void write(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: FieldWriter
      Writes the value of a map field.
      Specified by:
      write in interface FieldWriter
    • write

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

      public void write(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: FieldWriter
      Writes the value of byte field.
      Specified by:
      write in interface FieldWriter
    • write

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

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

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

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

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

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

      public void write(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: FieldWriter
      Writes the value of a predicate field.
      Specified by:
      write in interface FieldWriter
    • write

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

      public void write(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: FieldWriter
      Writes the value of a tensor field.
      Specified by:
      write in interface FieldWriter
    • write

      public void write(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: FieldWriter
      Writes the value of a reference field.
      Specified by:
      write in interface FieldWriter
    • write

      public void write(com.yahoo.vespa.objects.FieldBase field, StructuredFieldValue s)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Write out the value of structured field
      Specified by:
      write in interface FieldWriter
      Parameters:
      field - - field description (name and data type)
      s - - field value
    • write

      public void write(com.yahoo.vespa.objects.FieldBase field, Struct value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Write out the value of struct field
      Specified by:
      write in interface FieldWriter
      Parameters:
      field - - field description (name and data type)
      value - - field value
    • write

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

      public void write(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: FieldWriter
      Writes the value of an annotation reference.
      Specified by:
      write in interface FieldWriter
    • write

      public void write(DocumentId id)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      write in interface DocumentWriter
    • write

      public void write(DocumentType type)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      write in interface DocumentWriter
    • write

      public void write(DocumentRemove documentRemove)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      write in interface DocumentWriter
    • write

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

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

      public void write(SpanNode spanNode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      write in interface SpanNodeWriter
    • write

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

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

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

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

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

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

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

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

      public void write(AddValueUpdate update, DataType superType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      write in interface DocumentUpdateWriter
    • write

      public void write(MapValueUpdate update, DataType superType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      write in interface DocumentUpdateWriter
    • write

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

      public void write(AssignValueUpdate update, DataType superType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      write in interface DocumentUpdateWriter
    • write

      public void write(RemoveValueUpdate update, DataType superType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      write in interface DocumentUpdateWriter
    • write

      public void write(ClearValueUpdate clearValueUpdate, DataType superType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      write in interface DocumentUpdateWriter
    • write

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

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

      public void write(TensorRemoveUpdate update)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      write in interface DocumentUpdateWriter