public enum SaveMode extends Enum<SaveMode>
Append: In the Append mode, new data is appended to the datasource.
Overwrite: In the Overwrite mode, existing data is overwritten with the new data. If the datasource is a table, then the existing data in the table is replaced.
ErrorIfExists: In the ErrorIfExists mode, an error is thrown if the data being written already exists in the data source.
Ignore: In the Ignore mode, if the data already exists, the write operation is not expected to update existing data.
| Enum Constant and Description |
|---|
Append |
ErrorIfExists |
Ignore |
Overwrite |
| Modifier and Type | Method and Description |
|---|---|
static SaveMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SaveMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SaveMode Append
public static final SaveMode Overwrite
public static final SaveMode ErrorIfExists
public static final SaveMode Ignore
public static SaveMode[] values()
for (SaveMode c : SaveMode.values()) System.out.println(c);
public static SaveMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null© 2022 Snowflake Inc. All Rights Reserved