Enum BulkIngestMode

java.lang.Object
java.lang.Enum<BulkIngestMode>
org.apache.arrow.adbc.core.BulkIngestMode
All Implemented Interfaces:
Serializable, Comparable<BulkIngestMode>

public enum BulkIngestMode extends Enum<BulkIngestMode>
How to handle already-existing/nonexistent tables for bulk ingest operations.
  • Enum Constant Details

    • CREATE

      public static final BulkIngestMode CREATE
      Create the table and insert data; error if the table exists.
    • APPEND

      public static final BulkIngestMode APPEND
      Do not create the table and append data; error if the table does not exist (AdbcStatusCode.NOT_FOUND) or does not match the schema of the data to append (AdbcStatusCode.ALREADY_EXISTS).
    • REPLACE

      public static final BulkIngestMode REPLACE
      Create the table and insert data; drop the original table if it already exists.
      Since:
      ADBC API revision 1.1.0
    • CREATE_APPEND

      public static final BulkIngestMode CREATE_APPEND
      Insert data; create the table if it does not exist, or error (AdbcStatusCode.ALREADY_EXISTS) if the table exists, but the schema does not match the schema of the data to append.
  • Method Details

    • values

      public static BulkIngestMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BulkIngestMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null