Class PathOperand
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.xspec.Operand
-
- com.amazonaws.services.dynamodbv2.xspec.PathOperand
-
@Beta public class PathOperand extends Operand
A path operand used in building DynamooDB expressions such as update expressions and condition (aka filter) expressions. In general, a path operand refers to an attribute of some specific type in DynamoDB.Use
ExpressionSpecBuilder.S(String)
,ExpressionSpecBuilder.N(String)
, etc. to instantiate path operands to refer to attributes of specific data types. You can also useExpressionSpecBuilder.attribute(String)
to instantiate a path operand with an unspecified data type.- See Also:
ExpressionSpecBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Returns true if the given object is a path operand with the same path as that of the current path operand; false otherwise.FunctionCondition
exists()
Returns a function condition (that evaluates to true if the attribute referred to by this path operand exists) for building condition expression.int
hashCode()
FunctionCondition
notExists()
Returns a function condition (that evaluates to true if the attribute referred to by this path operand does not exist) for building condition expression.RemoveAction
remove()
Returns aRemoveAction
for removing the attribute referred to by this path operand from an item; used for building update expression.String
toString()
-
-
-
Method Detail
-
exists
public final FunctionCondition exists()
Returns a function condition (that evaluates to true if the attribute referred to by this path operand exists) for building condition expression.
-
notExists
public final FunctionCondition notExists()
Returns a function condition (that evaluates to true if the attribute referred to by this path operand does not exist) for building condition expression.
-
remove
public final RemoveAction remove()
Returns aRemoveAction
for removing the attribute referred to by this path operand from an item; used for building update expression.
-
-