Table of Contents

Class BatchGet

Namespace
Amazon.DynamoDBv2.DataModel
Assembly
AWSSDK.DynamoDBv2.dll

Represents a non-generic object for retrieving a batch of items from a single DynamoDB table

public abstract class BatchGet
Inheritance
BatchGet
Derived
Inherited Members

Properties

ConsistentRead

If set to true, a consistent read is issued. Otherwise eventually-consistent is used.

public bool ConsistentRead { get; set; }

Property Value

bool

Results

List of results retrieved from DynamoDB. Populated after Execute is called.

public List<object> Results { get; }

Property Value

List<object>

UntypedResults

Gets and sets the UntypedResults property.

protected List<object> UntypedResults { get; set; }

Property Value

List<object>

Methods

ExecuteAsync(CancellationToken)

Initiates the asynchronous execution of the Execute operation. Amazon.DynamoDBv2.DataModel.BatchGet.Execute

public Task ExecuteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Token which can be used to cancel the task.

Returns

Task

A Task that can be used to poll or wait for results, or both.

ExecuteHelper()

Executes a server call to batch-get the items requested. Populates Results with the retrieved items.

protected abstract void ExecuteHelper()

ExecuteHelperAsync(CancellationToken)

Executes an asynchronous server call to batch-get the items requested. Populates Results with the retrieved items.

protected abstract Task ExecuteHelperAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task