public class AttributeValueMarshaller
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.nio.ByteBuffer |
marshall(software.amazon.awssdk.services.dynamodb.model.AttributeValue attributeValue)
Marshalls the data using a TLV (Tag-Length-Value) encoding.
|
static software.amazon.awssdk.services.dynamodb.model.AttributeValue |
unmarshall(java.nio.ByteBuffer plainText) |
public static java.nio.ByteBuffer marshall(software.amazon.awssdk.services.dynamodb.model.AttributeValue attributeValue)
false and 1 for true (and so has no Length parameter). The
Null tag ('\0') takes neither a Length nor a Value parameter.
The tags 'L' and 'M' are for the document types List and Map respectively. These are encoded
recursively with the Length being the size of the collection. In the case of List, the value
is a Length number of marshalled AttributeValues. If the case of Map, the value is a Length
number of AttributeValue Pairs where the first must always have a String value.
This implementation does not recognize loops. If an AttributeValue contains itself
(even indirectly) this code will recurse infinitely.attributeValue - an AttributeValue instanceDataInputpublic static software.amazon.awssdk.services.dynamodb.model.AttributeValue unmarshall(java.nio.ByteBuffer plainText)
marshall(AttributeValue)