Class SingleKeyItemConditional
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.internal.conditional.SingleKeyItemConditional
-
- All Implemented Interfaces:
QueryConditional
public class SingleKeyItemConditional extends Object implements QueryConditional
AQueryConditional
implementation 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)
QueryConditional
implementations 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 boolean
equals(Object o)
Expression
expression(TableSchema<?> tableSchema, String indexName)
Generates a conditionalExpression
based on specific context that is supplied as arguments.int
hashCode()
-
-
-
Method Detail
-
expression
public Expression expression(TableSchema<?> tableSchema, String indexName)
Description copied from interface:QueryConditional
Generates a conditionalExpression
based on specific context that is supplied as arguments.- Specified by:
expression
in interfaceQueryConditional
- Parameters:
tableSchema
- ATableSchema
that this expression will be used withindexName
- The specific index name of the index this expression will be used with- Returns:
- A specific
Expression
that can be used as part of a query request
-
-