Example usage for com.amazonaws.services.dynamodbv2.model ConsumedCapacity ConsumedCapacity

List of usage examples for com.amazonaws.services.dynamodbv2.model ConsumedCapacity ConsumedCapacity

Introduction

In this page you can find the example usage for com.amazonaws.services.dynamodbv2.model ConsumedCapacity ConsumedCapacity.

Prototype

ConsumedCapacity

Source Link

Usage

From source file:com.amazon.janusgraph.diskstorage.dynamodb.QueryWorker.java

License:Open Source License

@Override
protected QueryResultWrapper getMergedPages() {
    final QueryResult mergedDynamoResult = new QueryResult().withItems(getFinalItemList())
            .withCount(returnedCount).withScannedCount(scannedCount).withConsumedCapacity(new ConsumedCapacity()
                    .withTableName(request.getTableName()).withCapacityUnits(totalCapacityUnits));
    return new QueryResultWrapper(titanKey, mergedDynamoResult);
}

From source file:com.rapid7.diskstorage.dynamodb.QueryWorker.java

License:Open Source License

@Override
protected QueryResultWrapper getMergedPages() {
    QueryResult mergedDynamoResult = new QueryResult().withItems(getFinalItemList()).withCount(returnedCount)
            .withScannedCount(scannedCount).withConsumedCapacity(new ConsumedCapacity()
                    .withTableName(request.getTableName()).withCapacityUnits(totalCapacityUnits));
    return new QueryResultWrapper(titanKey, mergedDynamoResult);
}