Example usage for com.amazonaws.services.dynamodbv2 AmazonDynamoDB scan

List of usage examples for com.amazonaws.services.dynamodbv2 AmazonDynamoDB scan

Introduction

In this page you can find the example usage for com.amazonaws.services.dynamodbv2 AmazonDynamoDB scan.

Prototype

ScanResult scan(ScanRequest scanRequest);

Source Link

Document

The Scan operation returns one or more items and item attributes by accessing every item in a table or a secondary index.

Usage

From source file:com.raoul.walkfoframe.web.DynamoDBManager.java

License:Open Source License

public static List<Map<String, AttributeValue>> getUserList() {
    AmazonDynamoDB ddb = HWOFameApplication.clientManager;
    ScanRequest request = new ScanRequest();
    request.setTableName("WOFHonorees");
    try {/*from w w w. j  a  v a2  s. c  o m*/
        ScanResult result = ddb.scan(request);

        return result.getItems();

    } catch (AmazonServiceException ex) {
        //HWOFameApplication.clientManager.wipeCredentialsOnAuthError(ex);
    }

    return null;
}

From source file:kinesisadaptersample.StreamsAdapterDemoHelper.java

License:Open Source License

public static ScanResult scanTable(AmazonDynamoDB dynamoDBClient, String tableName) {
    return dynamoDBClient.scan(new ScanRequest().withTableName(tableName));
}