Enum Constant and Description |
---|
Append
Append mode means that when saving a DataFrame to a data source, if data/table already exists,
contents of the DataFrame are expected to be appended to existing data.
|
ErrorIfExists
ErrorIfExists mode means that when saving a DataFrame to a data source, if data already exists,
an exception is expected to be thrown.
|
Ignore
Ignore mode means that when saving a DataFrame to a data source, if data already exists,
the save operation is expected to not save the contents of the DataFrame and to not
change the existing data.
|
Overwrite
Overwrite mode means that when saving a DataFrame to a data source,
if data/table already exists, existing data is expected to be overwritten by the contents of
the DataFrame.
|
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