Class Cqld4ScriptGraphOp
java.lang.Object
io.nosqlbench.adapter.cqld4.optypes.Cqld4ScriptGraphOp
- All Implemented Interfaces:
Cqld4BaseOp<com.datastax.dse.driver.api.core.graph.GraphResultSet>,CycleOp<com.datastax.dse.driver.api.core.graph.GraphResultSet>,OpResultSize,LongFunction<com.datastax.dse.driver.api.core.graph.GraphResultSet>
public class Cqld4ScriptGraphOp
extends Object
implements Cqld4BaseOp<com.datastax.dse.driver.api.core.graph.GraphResultSet>, OpResultSize
-
Constructor Summary
ConstructorsConstructorDescriptionCqld4ScriptGraphOp(com.datastax.oss.driver.api.core.CqlSession session, com.datastax.dse.driver.api.core.graph.ScriptGraphStatement stmt) -
Method Summary
Modifier and TypeMethodDescriptioncom.datastax.dse.driver.api.core.graph.GraphResultSetapply(long value) Run an action for the given cycle.longProvide the result size for an operation.
-
Constructor Details
-
Cqld4ScriptGraphOp
public Cqld4ScriptGraphOp(com.datastax.oss.driver.api.core.CqlSession session, com.datastax.dse.driver.api.core.graph.ScriptGraphStatement stmt)
-
-
Method Details
-
apply
public com.datastax.dse.driver.api.core.graph.GraphResultSet apply(long value) Description copied from interface:CycleOpRun an action for the given cycle.
- Specified by:
applyin interfaceCycleOp<com.datastax.dse.driver.api.core.graph.GraphResultSet>- Specified by:
applyin interfaceLongFunction<com.datastax.dse.driver.api.core.graph.GraphResultSet>- Parameters:
value- The cycle value for which an operation is run
-
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
-