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 Type
    Method
    Description
    int
    count(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 IOException
      Fetch the first dosage.
      Parameters:
      credentials - Credentials to AWS
      table - Table name
      conditions - Conditions
      keys - 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 IOException
      Count items.
      Parameters:
      credentials - Credentials to AWS
      table - Table name
      conditions - Conditions
      Returns:
      Total count of the
      Throws:
      IOException - In case of DynamoDB failure