Package com.jcabi.dynamo
Interface Valve
-
- All Known Implementing Classes:
QueryValve
,ReValve
,ScanValve
@Immutable public interface Valve
Provider of dosages of DynamoDB items.- Since:
- 0.7.21
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
fetch
Dosage fetch(Credentials credentials, String table, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions, Collection<String> keys) throws IOException
Fetch the first dosage.- Parameters:
credentials
- Credentials to AWStable
- Table nameconditions
- Conditionskeys
- Keys of the table- Returns:
- Dosage
- Throws:
IOException
- In case of DynamoDB failure- Suppressed Checkstyle violations:
- ParameterNumber (5 lines)
-
count
int count(Credentials credentials, String table, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions) throws IOException
Count items.- Parameters:
credentials
- Credentials to AWStable
- Table nameconditions
- Conditions- Returns:
- Total count of the
- Throws:
IOException
- In case of DynamoDB failure
-
-