Class DDBQueryOp

java.lang.Object
io.nosqlbench.adapter.dynamodb.optypes.DynamoDBOp
io.nosqlbench.adapter.dynamodb.optypes.DDBQueryOp
All Implemented Interfaces:
CycleOp<Object>, OpResultSize, LongFunction<Object>

public class DDBQueryOp extends DynamoDBOp implements OpResultSize
  • Field Summary

    Fields inherited from class io.nosqlbench.adapter.dynamodb.optypes.DynamoDBOp

    ddb
  • Constructor Summary

    Constructors
    Constructor
    Description
    DDBQueryOp(com.amazonaws.services.dynamodbv2.document.DynamoDB ddb, com.amazonaws.services.dynamodbv2.document.Table table, com.amazonaws.services.dynamodbv2.document.spec.QuerySpec querySpec)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.amazonaws.services.dynamodbv2.document.ItemCollection<com.amazonaws.services.dynamodbv2.document.QueryOutcome>
    apply(long value)
    Run an action for the given cycle.
    long
    Provide the result size for an operation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DDBQueryOp

      public DDBQueryOp(com.amazonaws.services.dynamodbv2.document.DynamoDB ddb, com.amazonaws.services.dynamodbv2.document.Table table, com.amazonaws.services.dynamodbv2.document.spec.QuerySpec querySpec)
  • Method Details

    • apply

      public com.amazonaws.services.dynamodbv2.document.ItemCollection<com.amazonaws.services.dynamodbv2.document.QueryOutcome> apply(long value)
      Description copied from interface: CycleOp

      Run an action for the given cycle.

      Specified by:
      apply in interface CycleOp<Object>
      Specified by:
      apply in interface LongFunction<Object>
      Parameters:
      value - The cycle value for which an operation is run
    • getResultSize

      public long getResultSize()
      Description copied from interface: OpResultSize
      Provide the result size for an operation. If this value is less than 0, it is disregarded by default, since some operations don't make sense to have a result size, and a zero-value would skew the results for other operations.
      Specified by:
      getResultSize in interface OpResultSize