Interface InternalSerde

All Superinterfaces:
ArangoSerde

public interface InternalSerde extends ArangoSerde
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    deserialize(byte[] content, Type type)
    Deserializes the content and binds it to the target data type.
    default <T> T
    deserialize(byte[] content, String jsonPointer, Class<T> clazz)
    Deserializes the content at json pointer and binds it to the target data type.
    default <T> T
    deserialize(byte[] content, String jsonPointer, Type type)
    Deserializes the content at json pointer and binds it to the target data type.
    default <T> T
    deserialize(com.fasterxml.jackson.databind.JsonNode node, Class<T> clazz)
    Deserializes the parsed json node and binds it to the target data type.
    <T> T
    deserialize(com.fasterxml.jackson.databind.JsonNode node, Type type)
    Deserializes the parsed json node and binds it to the target data type.
    <T> T
    deserializeUserData(byte[] content, Class<T> clazz)
    Deserializes the content and binds it to the target data type, using the user serde.
    <T> T
    deserializeUserData(byte[] content, Type type)
    Deserializes the content and binds it to the target data type, using the user serde.
    default <T> T
    deserializeUserData(com.fasterxml.jackson.databind.JsonNode node, Class<T> clazz)
    Deserializes the parsed json node and binds it to the target data type, using the user serde.
    <T> T
    deserializeUserData(com.fasterxml.jackson.databind.JsonNode node, Type type)
    Deserializes the parsed json node and binds it to the target data type, using the user serde.
    byte[]
    extract(byte[] content, String jsonPointer)
    Extract the nested content pointed by the json pointer.
     
    com.fasterxml.jackson.databind.JsonNode
    parse(byte[] content)
    Parses the content.
    com.fasterxml.jackson.databind.JsonNode
    parse(byte[] content, String jsonPointer)
    Parses the content at json pointer.
    byte[]
    Serializes each element in the collection using the user serde.
    byte[]
    Serializes the object into the target data type, using the user serde.
    toJsonString(byte[] content)
    Used for logging and debugging.

    Methods inherited from interface com.arangodb.serde.ArangoSerde

    deserialize, deserialize, serialize
  • Method Details

    • toJsonString

      String toJsonString(byte[] content)
      Used for logging and debugging.
      Parameters:
      content - byte array
      Returns:
      JSON string
    • extract

      byte[] extract(byte[] content, String jsonPointer)
      Extract the nested content pointed by the json pointer. Used for extracting nested user data.
      Parameters:
      content - byte array
      jsonPointer - location of data to be extracted
      Returns:
      byte array
    • deserialize

      <T> T deserialize(byte[] content, Type type)
      Deserializes the content and binds it to the target data type. For data type ContentType.JSON, the byte array is the JSON string encoded using the UTF-8 charset.
      Parameters:
      content - byte array to deserialize
      type - target data type
      Returns:
      deserialized object
    • deserialize

      default <T> T deserialize(com.fasterxml.jackson.databind.JsonNode node, Class<T> clazz)
      Deserializes the parsed json node and binds it to the target data type.
      Parameters:
      node - parsed json node
      clazz - class of target data type
      Returns:
      deserialized object
    • deserialize

      <T> T deserialize(com.fasterxml.jackson.databind.JsonNode node, Type type)
      Deserializes the parsed json node and binds it to the target data type.
      Parameters:
      node - parsed json node
      type - target data type
      Returns:
      deserialized object
    • parse

      com.fasterxml.jackson.databind.JsonNode parse(byte[] content)
      Parses the content.
      Parameters:
      content - VPack or byte encoded JSON string
      Returns:
      root of the parsed tree
    • parse

      com.fasterxml.jackson.databind.JsonNode parse(byte[] content, String jsonPointer)
      Parses the content at json pointer.
      Parameters:
      content - VPack or byte encoded JSON string
      jsonPointer - location of data to be parsed
      Returns:
      root of the parsed tree
    • deserialize

      default <T> T deserialize(byte[] content, String jsonPointer, Class<T> clazz)
      Deserializes the content at json pointer and binds it to the target data type. For data type ContentType.JSON, the byte array is the JSON string encoded using the UTF-8 charset.
      Parameters:
      content - byte array to deserialize
      jsonPointer - location of data to be deserialized
      clazz - class of target data type
      Returns:
      deserialized object
    • deserialize

      default <T> T deserialize(byte[] content, String jsonPointer, Type type)
      Deserializes the content at json pointer and binds it to the target data type. For data type ContentType.JSON, the byte array is the JSON string encoded using the UTF-8 charset.
      Parameters:
      content - byte array to deserialize
      jsonPointer - location of data to be deserialized
      type - target data type
      Returns:
      deserialized object
    • serializeUserData

      byte[] serializeUserData(Object value)
      Serializes the object into the target data type, using the user serde.
      Parameters:
      value - object to serialize
      Returns:
      serialized byte array
    • serializeCollectionUserData

      byte[] serializeCollectionUserData(Iterable<?> value)
      Serializes each element in the collection using the user serde.
      Parameters:
      value - objects to serialize
      Returns:
      serialized byte array
    • deserializeUserData

      <T> T deserializeUserData(byte[] content, Class<T> clazz)
      Deserializes the content and binds it to the target data type, using the user serde.
      Parameters:
      content - byte array to deserialize
      clazz - class of target data type
      Returns:
      deserialized object
    • deserializeUserData

      <T> T deserializeUserData(byte[] content, Type type)
      Deserializes the content and binds it to the target data type, using the user serde.
      Parameters:
      content - byte array to deserialize
      type - target data type
      Returns:
      deserialized object
    • deserializeUserData

      default <T> T deserializeUserData(com.fasterxml.jackson.databind.JsonNode node, Class<T> clazz)
      Deserializes the parsed json node and binds it to the target data type, using the user serde.
      Parameters:
      node - parsed json node
      clazz - class of target data type
      Returns:
      deserialized object
    • deserializeUserData

      <T> T deserializeUserData(com.fasterxml.jackson.databind.JsonNode node, Type type)
      Deserializes the parsed json node and binds it to the target data type, using the user serde.
      Parameters:
      node - parsed json node
      type - target data type
      Returns:
      deserialized object
    • getUserSerde

      ArangoSerde getUserSerde()
      Returns:
      the user serde