public enum InsertMode extends Enum<InsertMode>
| Enum Constant and Description |
|---|
NON_STRICT
In non-strict mode for insert into, we use insert operation
to write data which allow writing the duplicate record.
|
STRICT
In strict mode for insert into, we do the pk uniqueness guarantee
for COW pk-table.
|
UPSERT
In upsert mode for insert into, duplicate record on primary key
will be updated.This is the default insert mode for pk-table.
|
| Modifier and Type | Method and Description |
|---|---|
static InsertMode |
of(String value) |
String |
value() |
static InsertMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InsertMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InsertMode UPSERT
public static final InsertMode STRICT
public static final InsertMode NON_STRICT
public static InsertMode[] values()
for (InsertMode c : InsertMode.values()) System.out.println(c);
public static InsertMode 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 nullpublic String value()
public static InsertMode of(String value)
Copyright © 2023 The Apache Software Foundation. All rights reserved.