Package com.arangodb.internal.serde
Interface InternalSerde
- All Superinterfaces:
ArangoSerde
-
Method Summary
Modifier and TypeMethodDescription<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 the nested content pointed by the json pointer.com.fasterxml.jackson.databind.JsonNode
parse
(byte[] content) Parses the content.com.fasterxml.jackson.databind.JsonNode
Parses the content at json pointer.byte[]
serializeCollectionUserData
(Iterable<?> value) Serializes each element in the collection using the user serde.byte[]
serializeUserData
(Object value) 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
Used for logging and debugging.- Parameters:
content
- byte array- Returns:
- JSON string
-
extract
Extract the nested content pointed by the json pointer. Used for extracting nested user data.- Parameters:
content
- byte arrayjsonPointer
- location of data to be extracted- Returns:
- byte array
-
deserialize
Deserializes the content and binds it to the target data type. For data typeContentType.JSON
, the byte array is the JSON string encoded using the UTF-8 charset.- Parameters:
content
- byte array to deserializetype
- target data type- Returns:
- deserialized object
-
deserialize
Deserializes the parsed json node and binds it to the target data type.- Parameters:
node
- parsed json nodeclazz
- class of target data type- Returns:
- deserialized object
-
deserialize
Deserializes the parsed json node and binds it to the target data type.- Parameters:
node
- parsed json nodetype
- 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
Parses the content at json pointer.- Parameters:
content
- VPack or byte encoded JSON stringjsonPointer
- location of data to be parsed- Returns:
- root of the parsed tree
-
deserialize
Deserializes the content at json pointer and binds it to the target data type. For data typeContentType.JSON
, the byte array is the JSON string encoded using the UTF-8 charset.- Parameters:
content
- byte array to deserializejsonPointer
- location of data to be deserializedclazz
- class of target data type- Returns:
- deserialized object
-
deserialize
Deserializes the content at json pointer and binds it to the target data type. For data typeContentType.JSON
, the byte array is the JSON string encoded using the UTF-8 charset.- Parameters:
content
- byte array to deserializejsonPointer
- location of data to be deserializedtype
- target data type- Returns:
- deserialized object
-
serializeUserData
Serializes the object into the target data type, using the user serde.- Parameters:
value
- object to serialize- Returns:
- serialized byte array
-
serializeCollectionUserData
Serializes each element in the collection using the user serde.- Parameters:
value
- objects to serialize- Returns:
- serialized byte array
-
deserializeUserData
Deserializes the content and binds it to the target data type, using the user serde.- Parameters:
content
- byte array to deserializeclazz
- class of target data type- Returns:
- deserialized object
-
deserializeUserData
Deserializes the content and binds it to the target data type, using the user serde.- Parameters:
content
- byte array to deserializetype
- target data type- Returns:
- deserialized object
-
deserializeUserData
Deserializes the parsed json node and binds it to the target data type, using the user serde.- Parameters:
node
- parsed json nodeclazz
- class of target data type- Returns:
- deserialized object
-
deserializeUserData
Deserializes the parsed json node and binds it to the target data type, using the user serde.- Parameters:
node
- parsed json nodetype
- target data type- Returns:
- deserialized object
-
getUserSerde
ArangoSerde getUserSerde()- Returns:
- the user serde
-