public class AttributeValueMarshaller
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.nio.ByteBuffer |
marshall(com.amazonaws.services.dynamodbv2.model.AttributeValue attributeValue)
Marshalls the data using a TLV (Tag-Length-Value) encoding.
|
static com.amazonaws.services.dynamodbv2.model.AttributeValue |
unmarshall(java.nio.ByteBuffer plainText) |
public static java.nio.ByteBuffer marshall(com.amazonaws.services.dynamodbv2.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 - DataInputpublic static com.amazonaws.services.dynamodbv2.model.AttributeValue unmarshall(java.nio.ByteBuffer plainText)
marshall(AttributeValue)