public interface QueryConditional
Example:
QueryConditional partitionValueGreaterThanTen = QueryConditional.greaterThan(k -> k.partitionValue(10));
Modifier and Type | Method and Description |
---|---|
static QueryConditional |
beginsWith(Consumer<Key.Builder> keyConsumer)
Creates a
QueryConditional that matches when the key of an index begins with a specific value. |
static QueryConditional |
beginsWith(Key key)
Creates a
QueryConditional that matches when the key of an index begins with a specific value. |
static QueryConditional |
between(Consumer<Key.Builder> keyFromConsumer,
Consumer<Key.Builder> keyToConsumer)
Creates a
QueryConditional that matches when the key of an index is between two specific values. |
static QueryConditional |
between(Key keyFrom,
Key keyTo)
Creates a
QueryConditional that matches when the key of an index is between two specific values. |
static QueryConditional |
equalTo(Consumer<Key.Builder> keyConsumer)
Creates a
QueryConditional that matches when the key of an index is equal to a specific value. |
static QueryConditional |
equalTo(Key key)
Creates a
QueryConditional that matches when the key of an index is equal to a specific value. |
Expression |
expression(TableSchema<?> tableSchema,
String indexName)
Generates a conditional
Expression based on specific context that is supplied as arguments. |
static QueryConditional |
greaterThan(Consumer<Key.Builder> keyConsumer)
Creates a
QueryConditional that matches when the key of an index is greater than a specific value. |
static QueryConditional |
greaterThan(Key key)
Creates a
QueryConditional that matches when the key of an index is greater than a specific value. |
static QueryConditional |
greaterThanOrEqualTo(Consumer<Key.Builder> keyConsumer)
Creates a
QueryConditional that matches when the key of an index is greater than or equal to a specific
value. |
static QueryConditional |
greaterThanOrEqualTo(Key key)
Creates a
QueryConditional that matches when the key of an index is greater than or equal to a specific
value. |
static QueryConditional |
lessThan(Consumer<Key.Builder> keyConsumer)
Creates a
QueryConditional that matches when the key of an index is less than a specific value. |
static QueryConditional |
lessThan(Key key)
Creates a
QueryConditional that matches when the key of an index is less than a specific value. |
static QueryConditional |
lessThanOrEqualTo(Consumer<Key.Builder> keyConsumer)
Creates a
QueryConditional that matches when the key of an index is less than or equal to a specific
value. |
static QueryConditional |
lessThanOrEqualTo(Key key)
Creates a
QueryConditional that matches when the key of an index is less than or equal to a specific
value. |
static QueryConditional equalTo(Key key)
QueryConditional
that matches when the key of an index is equal to a specific value.key
- the literal key used to compare the value of the index againststatic QueryConditional equalTo(Consumer<Key.Builder> keyConsumer)
QueryConditional
that matches when the key of an index is equal to a specific value.keyConsumer
- 'builder consumer' for the literal key used to compare the value of the index againststatic QueryConditional greaterThan(Key key)
QueryConditional
that matches when the key of an index is greater than a specific value.key
- the literal key used to compare the value of the index againststatic QueryConditional greaterThan(Consumer<Key.Builder> keyConsumer)
QueryConditional
that matches when the key of an index is greater than a specific value.keyConsumer
- 'builder consumer' for the literal key used to compare the value of the index againststatic QueryConditional greaterThanOrEqualTo(Key key)
QueryConditional
that matches when the key of an index is greater than or equal to a specific
value.key
- the literal key used to compare the value of the index againststatic QueryConditional greaterThanOrEqualTo(Consumer<Key.Builder> keyConsumer)
QueryConditional
that matches when the key of an index is greater than or equal to a specific
value.keyConsumer
- 'builder consumer' for the literal key used to compare the value of the index againststatic QueryConditional lessThan(Key key)
QueryConditional
that matches when the key of an index is less than a specific value.key
- the literal key used to compare the value of the index againststatic QueryConditional lessThan(Consumer<Key.Builder> keyConsumer)
QueryConditional
that matches when the key of an index is less than a specific value.keyConsumer
- 'builder consumer' for the literal key used to compare the value of the index againststatic QueryConditional lessThanOrEqualTo(Key key)
QueryConditional
that matches when the key of an index is less than or equal to a specific
value.key
- the literal key used to compare the value of the index againststatic QueryConditional lessThanOrEqualTo(Consumer<Key.Builder> keyConsumer)
QueryConditional
that matches when the key of an index is less than or equal to a specific
value.keyConsumer
- 'builder consumer' for the literal key used to compare the value of the index againststatic QueryConditional between(Key keyFrom, Key keyTo)
QueryConditional
that matches when the key of an index is between two specific values.keyFrom
- the literal key used to compare the start of the range to compare the value of the index againstkeyTo
- the literal key used to compare the end of the range to compare the value of the index againststatic QueryConditional between(Consumer<Key.Builder> keyFromConsumer, Consumer<Key.Builder> keyToConsumer)
QueryConditional
that matches when the key of an index is between two specific values.keyFromConsumer
- 'builder consumer' for the literal key used to compare the start of the range to compare
the value of the index againstkeyToConsumer
- 'builder consumer' for the literal key used to compare the end of the range to compare the
value of the index againststatic QueryConditional beginsWith(Key key)
QueryConditional
that matches when the key of an index begins with a specific value.key
- the literal key used to compare the start of the value of the index againststatic QueryConditional beginsWith(Consumer<Key.Builder> keyConsumer)
QueryConditional
that matches when the key of an index begins with a specific value.keyConsumer
- 'builder consumer' the literal key used to compare the start of the value of the index
againstExpression expression(TableSchema<?> tableSchema, String indexName)
Expression
based on specific context that is supplied as arguments.tableSchema
- 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 © 2020. All rights reserved.