Package org.apache.arrow.adbc.core
Enum BulkIngestMode
- All Implemented Interfaces:
Serializable,Comparable<BulkIngestMode>
How to handle already-existing/nonexistent tables for bulk ingest operations.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDo 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).Create the table and insert data; error if the table exists.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.Create the table and insert data; drop the original table if it already exists. -
Method Summary
Modifier and TypeMethodDescriptionstatic BulkIngestModeReturns the enum constant of this type with the specified name.static BulkIngestMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CREATE
Create the table and insert data; error if the table exists. -
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
Create the table and insert data; drop the original table if it already exists.- Since:
- ADBC API revision 1.1.0
-
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
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
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 nameNullPointerException- if the argument is null
-