List of usage examples for com.amazonaws.services.dynamodbv2.model ScanRequest getExclusiveStartKey
public java.util.Map<String, AttributeValue> getExclusiveStartKey()
The primary key of the first item that this operation will evaluate.
From source file:com.amazon.janusgraph.diskstorage.dynamodb.DynamoDbDelegate.java
License:Open Source License
public static ScanRequest copyScanRequest(final ScanRequest request) { return new ScanRequest().withAttributesToGet(request.getAttributesToGet()) .withScanFilter(request.getScanFilter()).withConditionalOperator(request.getConditionalOperator()) .withExclusiveStartKey(request.getExclusiveStartKey()) .withExpressionAttributeNames(request.getExpressionAttributeNames()) .withExpressionAttributeValues(cloneItem(request.getExpressionAttributeValues())) .withFilterExpression(request.getFilterExpression()).withIndexName(request.getIndexName()) .withLimit(request.getLimit()).withProjectionExpression(request.getProjectionExpression()) .withReturnConsumedCapacity(request.getReturnConsumedCapacity()) .withScanFilter(request.getScanFilter()).withSelect(request.getSelect()) .withTableName(request.getTableName()).withTotalSegments(request.getTotalSegments()) .withSegment(request.getSegment()); }
From source file:com.amazon.janusgraph.diskstorage.dynamodb.iterator.SequentialScanner.java
License:Open Source License
public SequentialScanner(final DynamoDbDelegate dynamoDbDelegate, final ScanRequest request) { this.dynamoDbDelegate = dynamoDbDelegate; Preconditions.checkArgument(/*from w w w . jav a 2s .c o m*/ request.getExclusiveStartKey() == null || request.getExclusiveStartKey().isEmpty(), "A scan worker should start with a fresh ScanRequest"); this.request = DynamoDbDelegate.copyScanRequest(request); this.lastConsumedCapacity = dynamoDbDelegate.estimateCapacityUnits(DynamoDbDelegate.SCAN, request.getTableName()); this.currentFuture = dynamoDbDelegate.scanAsync(request, lastConsumedCapacity); }
From source file:com.rapid7.diskstorage.dynamodb.DynamoDBDelegate.java
License:Open Source License
public static ScanRequest copyScanRequest(ScanRequest request) { return new ScanRequest().withAttributesToGet(request.getAttributesToGet()) .withScanFilter(request.getScanFilter()).withConditionalOperator(request.getConditionalOperator()) .withExclusiveStartKey(request.getExclusiveStartKey()) .withExpressionAttributeNames(request.getExpressionAttributeNames()) .withExpressionAttributeValues(cloneItem(request.getExpressionAttributeValues())) .withFilterExpression(request.getFilterExpression()).withIndexName(request.getIndexName()) .withLimit(request.getLimit()).withProjectionExpression(request.getProjectionExpression()) .withReturnConsumedCapacity(request.getReturnConsumedCapacity()) .withScanFilter(request.getScanFilter()).withSelect(request.getSelect()) .withTableName(request.getTableName()).withTotalSegments(request.getTotalSegments()) .withSegment(request.getSegment()); }
From source file:com.rapid7.diskstorage.dynamodb.iterator.SequentialScanner.java
License:Open Source License
public SequentialScanner(DynamoDBDelegate dynamoDBDelegate, ScanRequest request) { this.dynamoDBDelegate = dynamoDBDelegate; Preconditions.checkArgument(//w ww . j av a2 s. c om request.getExclusiveStartKey() == null || request.getExclusiveStartKey().isEmpty(), "A scan worker should start with a fresh ScanRequest"); this.request = DynamoDBDelegate.copyScanRequest(request); this.lastConsumedCapacity = dynamoDBDelegate.estimateCapacityUnits(DynamoDBDelegate.SCAN, request.getTableName()); this.currentFuture = dynamoDBDelegate.scanAsync(request, lastConsumedCapacity); }