Class DDBGetItemOp

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

public class DDBGetItemOp extends DynamoDBOp implements OpResultSize
See Also:
  • Field Summary

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

    ddb
  • Constructor Summary

    Constructors
    Constructor
    Description
    DDBGetItemOp(com.amazonaws.services.dynamodbv2.document.DynamoDB ddb, com.amazonaws.services.dynamodbv2.document.Table table, com.amazonaws.services.dynamodbv2.document.spec.GetItemSpec getItemSpec)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.amazonaws.services.dynamodbv2.document.Item
    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

    • DDBGetItemOp

      public DDBGetItemOp(com.amazonaws.services.dynamodbv2.document.DynamoDB ddb, com.amazonaws.services.dynamodbv2.document.Table table, com.amazonaws.services.dynamodbv2.document.spec.GetItemSpec getItemSpec)
  • Method Details

    • apply

      public com.amazonaws.services.dynamodbv2.document.Item 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