| Constructor and Description |
|---|
QueryValve()
Public ctor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
count(Credentials credentials,
String table,
Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions)
Count items.
|
Dosage |
fetch(Credentials credentials,
String table,
Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions,
Collection<String> keys)
Fetch the first dosage.
|
QueryValve |
withAttributesToGet(String... names)
With these extra attributes to pre-fetch.
|
QueryValve |
withAttributeToGet(String name)
With this extra attribute to pre-fetch.
|
QueryValve |
withConsistentRead(boolean cnst)
With consistent read.
|
QueryValve |
withIndexName(String idx)
With index name.
|
QueryValve |
withLimit(int lmt)
With given limit.
|
QueryValve |
withScanIndexForward(boolean fwd)
With scan index forward flag.
|
QueryValve |
withSelect(com.amazonaws.services.dynamodbv2.model.Select slct)
With attributes to select.
|
public Dosage fetch(Credentials credentials, String table, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions, Collection<String> keys) throws IOException
Valvefetch in interface Valvecredentials - Credentials to AWStable - Table nameconditions - Conditionskeys - Keys of the tableIOException - In case of DynamoDB failurepublic int count(Credentials credentials, String table, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions) throws IOException
Valvecount in interface Valvecredentials - Credentials to AWStable - Table nameconditions - ConditionsIOException - In case of DynamoDB failurepublic QueryValve withConsistentRead(boolean cnst)
cnst - Consistent readQueryRequest.withConsistentRead(Boolean)public QueryValve withIndexName(String idx)
idx - Index nameQueryRequest.withIndexName(String)public QueryValve withSelect(com.amazonaws.services.dynamodbv2.model.Select slct)
slct - Select to useQueryRequest.withSelect(Select)public QueryValve withLimit(int lmt)
lmt - Limit to useQueryRequest.withLimit(Integer)public QueryValve withScanIndexForward(boolean fwd)
fwd - Forward flagQueryRequest.withScanIndexForward(Boolean)public QueryValve withAttributeToGet(String name)
name - Name of attribute to pre-loadQueryRequest.withAttributesToGet(Collection)public QueryValve withAttributesToGet(String... names)
names - Name of attributes to pre-loadQueryRequest.withAttributesToGet(Collection)Copyright © 2012–2018 jcabi.com. All rights reserved.