Class BatchedArguments

java.lang.Object
org.apache.ignite.sql.BatchedArguments
All Implemented Interfaces:
Iterable<List<Object>>

public final class BatchedArguments extends Object implements Iterable<List<Object>>
Arguments for batch query execution.
  • Method Details

    • create

      public static BatchedArguments create()
      Creates batched arguments.
      Returns:
      Batch query arguments.
    • of

      public static BatchedArguments of(Object... args)
      Creates batched arguments.
      Parameters:
      args - Arguments.
      Returns:
      Batch query arguments.
    • from

      public static BatchedArguments from(List<List<Object>> batchedArgs)
      Creates batched arguments.
      Parameters:
      batchedArgs - Arguments.
      Returns:
      Batch query arguments.
    • add

      public BatchedArguments add(Object... args)
      Appends arguments to a batch.
      Parameters:
      args - Arguments.
      Returns:
      this for chaining.
    • get

      public List<Object> get(int index)
      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()
      Returns true if this batch contains is empty.
      Returns:
      True if this batch contains is empty.
    • iterator

      public Iterator<List<Object>> iterator()
      Returns an iterator over the elements in this batch.
      Specified by:
      iterator in interface Iterable<List<Object>>
      Returns:
      Iterator over the elements in this batch.