本文整理了Java中com.amazonaws.services.dynamodbv2.model.QueryRequest.setTableName
方法的一些代码示例,展示了QueryRequest.setTableName
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryRequest.setTableName
方法的具体详情如下:
包路径:com.amazonaws.services.dynamodbv2.model.QueryRequest
类名称:QueryRequest
方法名:setTableName
[英]The name of the table containing the requested items.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
[中]包含请求项的表的名称。
限制条件:
长度:3-255
图案:[a-zA-Z0-9.-]+
代码示例来源:origin: aws/aws-sdk-java
/**
* Constructs a new QueryRequest object. Callers should use the setter or fluent setter (with...) methods to
* initialize any additional object members.
*
* @param tableName
* The name of the table containing the requested items.
*/
public QueryRequest(String tableName) {
setTableName(tableName);
}
代码示例来源:origin: aws/aws-sdk-java
/**
* <p>
* The name of the table containing the requested items.
* </p>
*
* @param tableName
* The name of the table containing the requested items.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QueryRequest withTableName(String tableName) {
setTableName(tableName);
return this;
}
代码示例来源:origin: aws-amplify/aws-sdk-android
/**
* Constructs a new QueryRequest object. Callers should use the setter or
* fluent setter (with...) methods to initialize any additional object
* members.
*
* @param tableName <p>
* The name of the table containing the requested items.
* </p>
*/
public QueryRequest(String tableName) {
setTableName(tableName);
}
代码示例来源:origin: aws/aws-sdk-java
protected <T> QueryRequest createQueryRequestFromExpression(Class<T> clazz,
DynamoDBQueryExpression<T> xpress, DynamoDBMapperConfig config) {
final DynamoDBMapperTableModel<T> model = getTableModel(clazz, config);
QueryRequest req = new QueryRequest();
req.setConsistentRead(xpress.isConsistentRead());
req.setTableName(getTableName(clazz, xpress.getHashKeyValues(), config));
req.setIndexName(xpress.getIndexName());
req.setKeyConditionExpression(xpress.getKeyConditionExpression());
processKeyConditions(req, xpress, model);
req.withScanIndexForward(xpress.isScanIndexForward())
.withLimit(xpress.getLimit())
.withExclusiveStartKey(xpress.getExclusiveStartKey())
.withQueryFilter(xpress.getQueryFilter())
.withConditionalOperator(xpress.getConditionalOperator())
.withSelect(xpress.getSelect())
.withProjectionExpression(xpress.getProjectionExpression())
.withFilterExpression(xpress.getFilterExpression())
.withExpressionAttributeNames(xpress.getExpressionAttributeNames())
.withExpressionAttributeValues(xpress.getExpressionAttributeValues())
.withReturnConsumedCapacity(xpress.getReturnConsumedCapacity())
.withRequestMetricCollector(config.getRequestMetricCollector())
;
return applyUserAgent(req);
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-dynamodb
/**
* Constructs a new QueryRequest object. Callers should use the setter or fluent setter (with...) methods to
* initialize any additional object members.
*
* @param tableName
* The name of the table containing the requested items.
*/
public QueryRequest(String tableName) {
setTableName(tableName);
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-dynamodb
/**
* <p>
* The name of the table containing the requested items.
* </p>
*
* @param tableName
* The name of the table containing the requested items.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QueryRequest withTableName(String tableName) {
setTableName(tableName);
return this;
}
代码示例来源:origin: stackoverflow.com
QueryRequest request = new QueryRequest();
request.setTableName(tablename);
QueryResult result = dynamoDB.query(request);
ItemCollection<QueryOutcome> items = result.getItems();
Map<String,AttributeValue> lastKey = result.getLastEvaluatedKey();
代码示例来源:origin: aws-amplify/aws-sdk-android
private <T> QueryRequest createQueryRequestFromExpression(Class<T> clazz,
DynamoDBQueryExpression<T> queryExpression, DynamoDBMapperConfig config) {
final QueryRequest queryRequest = new QueryRequest();
queryRequest.setConsistentRead(queryExpression.isConsistentRead());
queryRequest.setTableName(getTableName(clazz, queryExpression.getHashKeyValues(), config));
queryRequest.setIndexName(queryExpression.getIndexName());
final ItemConverter converter = getConverter(config);
// Hash key (primary or index) conditions
final Map<String, Condition> hashKeyConditions = getHashKeyEqualsConditions(
converter, queryExpression.getHashKeyValues());
// Range key (primary or index) conditions
final Map<String, Condition> rangeKeyConditions = queryExpression.getRangeKeyConditions();
processKeyConditions(clazz, queryRequest, hashKeyConditions, rangeKeyConditions);
queryRequest.setScanIndexForward(queryExpression.isScanIndexForward());
queryRequest.setLimit(queryExpression.getLimit());
queryRequest.setExclusiveStartKey(queryExpression.getExclusiveStartKey());
queryRequest.setQueryFilter(queryExpression.getQueryFilter());
queryRequest.setConditionalOperator(queryExpression.getConditionalOperator());
queryRequest.setRequestMetricCollector(config.getRequestMetricCollector());
queryRequest.setFilterExpression(queryExpression.getFilterExpression());
queryRequest.setExpressionAttributeNames(queryExpression
.getExpressionAttributeNames());
queryRequest.setExpressionAttributeValues(queryExpression
.getExpressionAttributeValues());
return applyUserAgent(queryRequest);
}
代码示例来源:origin: michaellavelle/spring-data-dynamodb
queryRequest.setTableName(tableName);
queryRequest.setIndexName(theIndexName);
代码示例来源:origin: com.github.derjust/spring-data-dynamodb
queryRequest.setTableName(tableName);
queryRequest.setIndexName(theIndexName);
代码示例来源:origin: com.amazonaws/aws-java-sdk-dynamodb
protected <T> QueryRequest createQueryRequestFromExpression(Class<T> clazz,
DynamoDBQueryExpression<T> xpress, DynamoDBMapperConfig config) {
final DynamoDBMapperTableModel<T> model = getTableModel(clazz, config);
QueryRequest req = new QueryRequest();
req.setConsistentRead(xpress.isConsistentRead());
req.setTableName(getTableName(clazz, xpress.getHashKeyValues(), config));
req.setIndexName(xpress.getIndexName());
req.setKeyConditionExpression(xpress.getKeyConditionExpression());
processKeyConditions(req, xpress, model);
req.withScanIndexForward(xpress.isScanIndexForward())
.withLimit(xpress.getLimit())
.withExclusiveStartKey(xpress.getExclusiveStartKey())
.withQueryFilter(xpress.getQueryFilter())
.withConditionalOperator(xpress.getConditionalOperator())
.withSelect(xpress.getSelect())
.withProjectionExpression(xpress.getProjectionExpression())
.withFilterExpression(xpress.getFilterExpression())
.withExpressionAttributeNames(xpress.getExpressionAttributeNames())
.withExpressionAttributeValues(xpress.getExpressionAttributeValues())
.withReturnConsumedCapacity(xpress.getReturnConsumedCapacity())
.withRequestMetricCollector(config.getRequestMetricCollector())
;
return applyUserAgent(req);
}
内容来源于网络,如有侵权,请联系作者删除!