Interface Valve

  • All Known Implementing Classes:
    QueryValve, ReValve, ScanValve

    @Immutable
    public interface Valve
    Provider of dosages of DynamoDB items.
    Since:
    0.7.21
    • 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 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,​com.amazonaws.services.dynamodbv2.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