C# Class Amazon.DynamoDBv2.Model.QueryRequest

Container for the parameters to the Query operation.

A Query operation directly accesses items from a table using the table primary key, or from an index using the index key. You must provide a specific hash key value. You can narrow the scope of the query by using comparison operators on the range key value, or on the index key. You can use the ScanIndexForward parameter to get results in forward or reverse order, by range key or by index key.

Queries that do not return results consume the minimum read capacity units according to the type of read.

If the total number of items meeting the query criteria exceeds the result set size limit of 1 MB, the query stops and results are returned to the user with a LastEvaluatedKey to continue the query in a subsequent operation. Unlike a Scan operation, a Query operation never returns an empty result set and a LastEvaluatedKey . The LastEvaluatedKey is only provided if the results exceed 1 MB, or if you have used Limit .

You can query a table, a local secondary index, or a global secondary index. For a query on a table or on a local secondary index, you can set ConsistentRead to true and obtain a strongly consistent result. Global secondary indexes support eventually consistent reads only, so do not specify ConsistentRead when querying a global secondary index.

Inheritance: AmazonDynamoDBv2Request
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
QueryRequest ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

QueryRequest ( string tableName ) : System

Instantiates QueryRequest with the parameterized properties

Private Methods

Method Description
IsSetAttributesToGet ( ) : bool
IsSetConditionalOperator ( ) : bool
IsSetConsistentRead ( ) : bool
IsSetExclusiveStartKey ( ) : bool
IsSetExpressionAttributeNames ( ) : bool
IsSetExpressionAttributeValues ( ) : bool
IsSetFilterExpression ( ) : bool
IsSetIndexName ( ) : bool
IsSetKeyConditionExpression ( ) : bool
IsSetKeyConditions ( ) : bool
IsSetLimit ( ) : bool
IsSetProjectionExpression ( ) : bool
IsSetQueryFilter ( ) : bool
IsSetReturnConsumedCapacity ( ) : bool
IsSetScanIndexForward ( ) : bool
IsSetSelect ( ) : bool
IsSetTableName ( ) : bool

Method Details

QueryRequest() public method

Empty constructor used to set properties independently even when a simple constructor is available
public QueryRequest ( ) : System
return System

QueryRequest() public method

Instantiates QueryRequest with the parameterized properties
public QueryRequest ( string tableName ) : System
tableName string The name of the table containing the requested items.
return System