Class SingleKeyItemConditional
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.internal.conditional.SingleKeyItemConditional
-
- All Implemented Interfaces:
QueryConditional
public class SingleKeyItemConditional extends Object implements QueryConditional
AQueryConditionalimplementation that matches values from a specific key using a supplied operator for the sort key value comparison. The partition key value will always have an equivalence comparison applied.This class is used by higher-level (more specific)
QueryConditionalimplementations such asQueryConditional.sortGreaterThan(Key)to reduce code duplication.
-
-
Constructor Summary
Constructors Constructor Description SingleKeyItemConditional(Key key, String operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Expressionexpression(TableSchema<?> tableSchema, String indexName)Generates a conditionalExpressionbased on specific context that is supplied as arguments.inthashCode()
-
-
-
Method Detail
-
expression
public Expression expression(TableSchema<?> tableSchema, String indexName)
Description copied from interface:QueryConditionalGenerates a conditionalExpressionbased on specific context that is supplied as arguments.- Specified by:
expressionin interfaceQueryConditional- Parameters:
tableSchema- ATableSchemathat this expression will be used withindexName- The specific index name of the index this expression will be used with- Returns:
- A specific
Expressionthat can be used as part of a query request
-
-