Example usage for com.amazonaws.services.dynamodbv2.model ReturnItemCollectionMetrics SIZE

List of usage examples for com.amazonaws.services.dynamodbv2.model ReturnItemCollectionMetrics SIZE

Introduction

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

Prototype

ReturnItemCollectionMetrics SIZE

To view the source code for com.amazonaws.services.dynamodbv2.model ReturnItemCollectionMetrics SIZE.

Click Source Link

Usage

From source file:com.vitembp.embedded.data.UuidStringStoreDynamoDB.java

License:Open Source License

@Override
public void delete(UUID key) throws IOException {
    Map<String, AttributeValue> reqkey = new HashMap<>();
    reqkey.put("ID", new AttributeValue().withS(key.toString()));

    DeleteItemRequest request = new DeleteItemRequest().withTableName("DATA").withKey(reqkey)
            .withReturnItemCollectionMetrics(ReturnItemCollectionMetrics.SIZE);

    DeleteItemResult result = client.deleteItem(request);
}