QueryApi
IndexQueryImpl
public class QueryImpl extends Object implements QueryApi
QueryApi
of a table.Constructor | Description |
---|---|
QueryImpl(DynamoDBClient client,
Table table) |
Modifier and Type | Method | Description |
---|---|---|
Table |
getTable() |
Returns the owning table.
|
ItemCollection<QueryOutcome> |
query(String hashKeyName,
Object hashKey) |
Retrieves items by the specified hash key.
|
ItemCollection<QueryOutcome> |
query(String hashKeyName,
Object hashKeyValue,
RangeKeyCondition rangeKeyCondition) |
|
ItemCollection<QueryOutcome> |
query(String hashKeyName,
Object hashKeyValue,
RangeKeyCondition rangeKeyCondition,
String filterExpression,
String projectionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
Retrieves items by the specified hash key, a range key condition,
a filter expression and a projection expression.
|
ItemCollection<QueryOutcome> |
query(String hashKeyName,
Object hashKeyValue,
RangeKeyCondition rangeKeyCondition,
String filterExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
|
ItemCollection<QueryOutcome> |
query(String hashKeyName,
Object hashKeyValue,
RangeKeyCondition rangeKeyCondition,
QueryFilter... queryFilters) |
|
ItemCollection<QueryOutcome> |
query(KeyAttribute hashKey) |
Retrieves items by the specified hash key.
|
ItemCollection<QueryOutcome> |
query(KeyAttribute hashKey,
RangeKeyCondition rangeKeyCondition) |
Retrieves items by the specified hash key and a range key condition.
|
ItemCollection<QueryOutcome> |
query(KeyAttribute hashKey,
RangeKeyCondition rangeKeyCondition,
String filterExpression,
String projectionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
Retrieves items by the specified hash key, a range key condition,
a filter expression and a projection expression.
|
ItemCollection<QueryOutcome> |
query(KeyAttribute hashKey,
RangeKeyCondition rangeKeyCondition,
String filterExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
Retrieves items by the specified hash key, a range key condition, and
a filter expression string.
|
ItemCollection<QueryOutcome> |
query(KeyAttribute hashKey,
RangeKeyCondition rangeKeyCondition,
QueryFilter... queryFilters) |
Retrieves items by the specified hash key, a range key condition
and a list of query filters.
|
ItemCollection<QueryOutcome> |
query(QuerySpec spec) |
Queries table by specifying all the details.
|
public QueryImpl(DynamoDBClient client, Table table)
public ItemCollection<QueryOutcome> query(String hashKeyName, Object hashKey)
QueryApi
public ItemCollection<QueryOutcome> query(KeyAttribute hashKey)
QueryApi
public ItemCollection<QueryOutcome> query(KeyAttribute hashKey, RangeKeyCondition rangeKeyCondition)
QueryApi
public ItemCollection<QueryOutcome> query(KeyAttribute hashKey, RangeKeyCondition rangeKeyCondition, QueryFilter... queryFilters)
QueryApi
public ItemCollection<QueryOutcome> query(KeyAttribute hashKey, RangeKeyCondition rangeKeyCondition, String filterExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
QueryApi
query
in interface QueryApi
filterExpression
- filter expression
example: "(#a > :a) AND (#c > :c OR #e < :e)"nameMap
- actual values for the attribute-name place holders;
can be null if there is no attribute-name placeholder.valueMap
- actual values for the value place holders
can be null if there is no attribute-value placeholder.public ItemCollection<QueryOutcome> query(KeyAttribute hashKey, RangeKeyCondition rangeKeyCondition, String filterExpression, String projectionExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
QueryApi
query
in interface QueryApi
filterExpression
- filter expression
example: "(#a > :a) AND (#c > :c OR #e < :e)"projectionExpression
- projection expression
example: "a.b, c[0].e"nameMap
- actual values for the attribute-name place holders;
can be null if there is no attribute-name placeholder.valueMap
- actual values for the value place holders
can be null if there is no attribute-value placeholder.public ItemCollection<QueryOutcome> query(QuerySpec spec)
QueryApi
public ItemCollection<QueryOutcome> query(String hashKeyName, Object hashKeyValue, RangeKeyCondition rangeKeyCondition)
public ItemCollection<QueryOutcome> query(String hashKeyName, Object hashKeyValue, RangeKeyCondition rangeKeyCondition, QueryFilter... queryFilters)
public ItemCollection<QueryOutcome> query(String hashKeyName, Object hashKeyValue, RangeKeyCondition rangeKeyCondition, String filterExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
public ItemCollection<QueryOutcome> query(String hashKeyName, Object hashKeyValue, RangeKeyCondition rangeKeyCondition, String filterExpression, String projectionExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
QueryApi
query
in interface QueryApi
filterExpression
- filter expression
example: "(#a > :a) AND (#c > :c OR #e < :e)"projectionExpression
- projection expression
example: "a.b, c[0].e"nameMap
- actual values for the attribute-name place holders;
can be null if there is no attribute-name placeholder.valueMap
- actual values for the value place holders
can be null if there is no attribute-value placeholder.public final Table getTable()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.