Package org.apache.ignite.sql
Class BatchedArguments
java.lang.Object
org.apache.ignite.sql.BatchedArguments
Arguments for batch query execution.
-
Method Summary
Modifier and TypeMethodDescriptionAppends arguments to a batch.static BatchedArguments
create()
Creates batched arguments.static BatchedArguments
Creates batched arguments.get
(int index) Returns the arguments list at the specified position.boolean
isEmpty()
Returnstrue
if this batch contains is empty.iterator()
Returns an iterator over the elements in this batch.static BatchedArguments
Creates batched arguments.int
size()
Returns the size of this batch.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
create
Creates batched arguments.- Returns:
- Batch query arguments.
-
of
Creates batched arguments.- Parameters:
args
- Arguments.- Returns:
- Batch query arguments.
-
from
Creates batched arguments.- Parameters:
batchedArgs
- Arguments.- Returns:
- Batch query arguments.
-
add
Appends arguments to a batch.- Parameters:
args
- Arguments.- Returns:
this
for chaining.
-
get
Returns the arguments list at the specified position.- Parameters:
index
- index of the element to return.- Returns:
- Arguments list.
-
size
public int size()Returns the size of this batch.- Returns:
- Batch size.
-
isEmpty
public boolean isEmpty()Returnstrue
if this batch contains is empty.- Returns:
True
if this batch contains is empty.
-
iterator
Returns an iterator over the elements in this batch.
-