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>
-
Field Summary
Fields inherited from class io.nosqlbench.adapter.dynamodb.optypes.DynamoDBOp
ddb -
Constructor Summary
ConstructorsConstructorDescriptionDDBQueryOp(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 TypeMethodDescriptioncom.amazonaws.services.dynamodbv2.document.ItemCollection<com.amazonaws.services.dynamodbv2.document.QueryOutcome> apply(long value) Run an action for the given cycle.longProvide the result size for an operation.
-
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:CycleOpRun an action for the given cycle.
-
getResultSize
public long getResultSize()Description copied from interface:OpResultSizeProvide 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:
getResultSizein interfaceOpResultSize
-