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
Modifier and TypeMethodDescriptionintcount(Credentials credentials, String table, Map<String, software.amazon.awssdk.services.dynamodb.model.Condition> conditions) Count items.fetch(Credentials credentials, String table, Map<String, software.amazon.awssdk.services.dynamodb.model.Condition> conditions, Collection<String> keys) Fetch the first dosage.
-
Method Details
-
fetch
Dosage fetch(Credentials credentials, String table, Map<String, software.amazon.awssdk.services.dynamodb.model.Condition> conditions, Collection<String> keys) throws IOExceptionFetch 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, software.amazon.awssdk.services.dynamodb.model.Condition> conditions) throws IOExceptionCount items.- Parameters:
credentials- Credentials to AWStable- Table nameconditions- Conditions- Returns:
- Total count of the
- Throws:
IOException- In case of DynamoDB failure
-