Modifier and Type | Method and Description |
---|---|
void |
execute(BatchConsumer consumer,
Row parameters)
execute the task if it represents a single operation.
|
java.util.List<java.util.concurrent.CompletableFuture<java.lang.Long>> |
executeBulk()
execute the task if it represents a bulk operation.
|
public static final NoopTask INSTANCE
public void execute(BatchConsumer consumer, Row parameters)
Task
The consumer will receive a BatchIterator containing the result.
public java.util.List<java.util.concurrent.CompletableFuture<java.lang.Long>> executeBulk()
Task
The result will be a List containing the row-counts per operation. Elements of the list cannot be null, but will be -1 if unknown and -2 if an error occurred.
executeBulk
in interface Task