@Override public AmazonDynamoDB aws() { return this.credentials.aws(); } @Override
@Override public AmazonDynamoDB aws() { return this.credentials.aws(); } @Override
@Override public AmazonDynamoDB aws() { final AmazonDynamoDB aws = this.origin.aws(); aws.setEndpoint(this.endpoint); return aws; } }
@Override public AmazonDynamoDB aws() { final AmazonDynamoDB aws = this.origin.aws(); aws.setEndpoint(this.endpoint); return aws; } }
AttributeValue value = this.attributes.get(attrib); if (value == null) { final AmazonDynamoDB aws = this.credentials.aws(); try { final GetItemRequest request = this.makeItemRequestFor(attrib);
AttributeValue value = this.attributes.get(attrib); if (value == null) { final AmazonDynamoDB aws = this.credentials.aws(); try { final GetItemRequest request = this.makeItemRequestFor(attrib);
boolean has = this.attributes.containsKey(attrib); if (!has) { final AmazonDynamoDB aws = this.credentials.aws(); try { final GetItemRequest request = this.makeItemRequestFor(attr);
boolean has = this.attributes.containsKey(attrib); if (!has) { final AmazonDynamoDB aws = this.credentials.aws(); try { final GetItemRequest request = this.makeItemRequestFor(attr);
final AmazonDynamoDB aws = this.credentials.aws(); try { final long start = System.currentTimeMillis();
@Override public void delete(final Map<String, AttributeValue> attributes) throws IOException { final AmazonDynamoDB aws = this.credentials.aws(); try { final DeleteItemRequest request = new DeleteItemRequest();
@Override public void delete(final Map<String, AttributeValue> attributes) throws IOException { final AmazonDynamoDB aws = this.credentials.aws(); try { final DeleteItemRequest request = new DeleteItemRequest();
public void remove() { synchronized (this.dosage) { final AmazonDynamoDB aws = this.credentials.aws(); try { final Dosage prev = this.dosage.get();
@Override public Map<String, AttributeValue> put( final Map<String, AttributeValueUpdate> attrs) throws IOException { final AmazonDynamoDB aws = this.credentials.aws(); final Attributes expected = this.attributes.only(this.keys); try {
); final AmazonDynamoDB aws = this.credentials.aws(); try { final ScanRequest rqst = this.request.withExclusiveStartKey(
@Override public Map<String, AttributeValue> put( final Map<String, AttributeValueUpdate> attrs) throws IOException { final AmazonDynamoDB aws = this.credentials.aws(); final Attributes expected = this.attributes.only(this.keys); try {
); final AmazonDynamoDB aws = this.credentials.aws(); try { final QueryRequest rqst =
); final AmazonDynamoDB aws = this.credentials.aws(); try { final QueryRequest rqst =
); final AmazonDynamoDB aws = this.credentials.aws(); try { final ScanRequest rqst = this.request.withExclusiveStartKey(
@Override public int count(final Credentials credentials, final String table, final Map<String, Condition> conditions) { final AmazonDynamoDB aws = credentials.aws(); try { final ScanRequest request = new ScanRequest() .withTableName(table) .withReturnConsumedCapacity(ReturnConsumedCapacity.TOTAL) .withScanFilter(conditions) .withSelect(Select.COUNT) .withLimit(Integer.MAX_VALUE); final long start = System.currentTimeMillis(); final ScanResult result = aws.scan(request); final int count = result.getCount(); Logger.info( this, // @checkstyle LineLength (1 line) "#total(): COUNT=%d in '%s' using %s, %s, in %[ms]s", count, request.getTableName(), request.getFilterExpression(), new PrintableConsumedCapacity( result.getConsumedCapacity() ).print(), System.currentTimeMillis() - start ); return count; } finally { aws.shutdown(); } }
@Override public int count(final Credentials credentials, final String table, final Map<String, Condition> conditions) { final AmazonDynamoDB aws = credentials.aws(); try { final ScanRequest request = new ScanRequest() .withTableName(table) .withReturnConsumedCapacity(ReturnConsumedCapacity.TOTAL) .withScanFilter(conditions) .withSelect(Select.COUNT) .withLimit(Integer.MAX_VALUE); final long start = System.currentTimeMillis(); final ScanResult result = aws.scan(request); final int count = result.getCount(); Logger.info( this, // @checkstyle LineLength (1 line) "#total(): COUNT=%d in '%s' using %s, %s, in %[ms]s", count, request.getTableName(), request.getFilterExpression(), new PrintableConsumedCapacity( result.getConsumedCapacity() ).print(), System.currentTimeMillis() - start ); return count; } finally { aws.shutdown(); } }