public class SingleKeyItemConditional extends Object implements QueryConditional
QueryConditional 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 as
QueryConditional.sortGreaterThan(Key) to reduce code duplication.
| Constructor and Description |
|---|
SingleKeyItemConditional(Key key,
String operator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Expression |
expression(TableSchema<?> tableSchema,
String indexName)
Generates a conditional
Expression based on specific context that is supplied as arguments. |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitkeyEqualTo, keyEqualTo, sortBeginsWith, sortBeginsWith, sortBetween, sortBetween, sortGreaterThan, sortGreaterThan, sortGreaterThanOrEqualTo, sortGreaterThanOrEqualTo, sortLessThan, sortLessThan, sortLessThanOrEqualTo, sortLessThanOrEqualTopublic Expression expression(TableSchema<?> tableSchema, String indexName)
QueryConditionalExpression based on specific context that is supplied as arguments.expression in interface QueryConditionaltableSchema - A TableSchema that this expression will be used withindexName - The specific index name of the index this expression will be used withExpression that can be used as part of a query requestCopyright © 2023. All rights reserved.