Constructor and Description |
---|
ScanValve()
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.
|
ScanValve |
withAttributeToGet(String... names)
With these extra attributes to pre-fetch.
|
ScanValve |
withAttributeToGet(String name)
With this extra attribute to pre-fetch.
|
ScanValve |
withLimit(int lmt)
With given limit.
|
public Dosage fetch(Credentials credentials, String table, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions, Collection<String> keys) throws IOException
Valve
fetch
in interface Valve
credentials
- 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)
Valve
public ScanValve withLimit(int lmt)
lmt
- Limit to usepublic ScanValve withAttributeToGet(String name)
name
- Name of attribute to pre-loadCopyright © 2012–2017 jcabi.com. All rights reserved.