final class SubstitutionContext
extends java.lang.Object
To avoid attribute names that may conflict with the DynamoDB reserved words, the expressions builder will automatically transform every component of a document path into the use of an "expression attribute name" (that begins with "#") as a placeholder. The actual mapping from the "expression attribute name" to the actual attribute name is automatically taken care of by the builder in a "name map". Similarly, the actual mapping from the "expression attribute value" (that begins with ":") to the actual attribute value is automatically taken care of by the builder in a "value map". See more information at Using Placeholders for Attribute Names and Values.
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Integer> |
nameToToken |
private java.util.Map<java.lang.Object,java.lang.Integer> |
valueToToken |
Constructor and Description |
---|
SubstitutionContext() |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
getNameByToken(int token) |
(package private) java.util.Map<java.lang.String,java.lang.String> |
getNameMap() |
(package private) java.lang.Object |
getValueByToken(int token) |
(package private) java.util.Map<java.lang.String,java.lang.Object> |
getValueMap() |
(package private) java.lang.String |
nameTokenFor(java.lang.String name)
Returns the name token for the given name, creating a new token as
necessary.
|
(package private) int |
numNameTokens() |
(package private) int |
numValueTokens() |
java.lang.String |
toString() |
(package private) java.lang.String |
valueTokenFor(java.lang.Object value)
Returns the value token for the given value, creating a new token as
necessary.
|
private final java.util.Map<java.lang.String,java.lang.Integer> nameToToken
private final java.util.Map<java.lang.Object,java.lang.Integer> valueToToken
java.lang.String nameTokenFor(java.lang.String name)
java.lang.String valueTokenFor(java.lang.Object value)
java.util.Map<java.lang.String,java.lang.String> getNameMap()
java.util.Map<java.lang.String,java.lang.Object> getValueMap()
int numNameTokens()
int numValueTokens()
java.lang.String getNameByToken(int token)
java.lang.Object getValueByToken(int token)
public java.lang.String toString()
toString
in class java.lang.Object