org.apache.tinkerpop.gremlin.driver.ser.binary.types

## Class MapSerializer

- java.lang.Object
- - org.apache.tinkerpop.gremlin.driver.ser.binary.types.SimpleTypeSerializer<Map>
  - - org.apache.tinkerpop.gremlin.driver.ser.binary.types.MapSerializer

- All Implemented Interfaces:
    TypeSerializer<Map>

      public class MapSerializer
      extends SimpleTypeSerializer<Map>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MapSerializer()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected Map` | `readValue(ByteBuf buffer, GraphBinaryReader context)` Reads a non-nullable value according to the type format.
    `protected void` | `writeValue(Map value, ByteBuf buffer, GraphBinaryWriter context)` Writes a non-nullable value into a buffer using the provided allocator.

    - ### Methods inherited from class org.apache.tinkerpop.gremlin.driver.ser.binary.types.SimpleTypeSerializer

      `getDataType, read, readValue, write, writeValue`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### MapSerializer

          public MapSerializer()

  - ### Method Detail

    - #### readValue

          protected Map readValue(ByteBuf buffer,
                                  GraphBinaryReader context)
                           throws SerializationException

      Description copied from class: `SimpleTypeSerializer`
      Reads a non-nullable value according to the type format.
      Specified by:
        `readValue` in class `SimpleTypeSerializer<Map>`
      Parameters:
        `buffer` - A buffer which reader index has been set to the beginning of the {value}.
        `context` - The binary writer.
      Returns:
      Throws:
        `SerializationException`

    - #### writeValue

          protected void writeValue(Map value,
                                    ByteBuf buffer,
                                    GraphBinaryWriter context)
                             throws SerializationException

      Description copied from class: `SimpleTypeSerializer`
      Writes a non-nullable value into a buffer using the provided allocator.
      Specified by:
        `writeValue` in class `SimpleTypeSerializer<Map>`
      Parameters:
        `value` - A non-nullable value.
        `buffer` - The buffer allocator to use.
        `context` - The binary writer.
      Throws:
        `SerializationException`

Copyright © 2013–2019 Apache Software Foundation. All rights reserved.