public enum WriteMode extends Enum<WriteMode>
BATCH mode: Default mode. Data is written to the table and becomes visible only after the session is committed.
STREAMING mode: Data becomes visible immediately after flush, without requiring explicit commit. The session uses a default session ID and does not require explicit session creation.
| Enum Constant and Description |
|---|
BATCH
Batch write mode.
|
STREAMING
Streaming write mode.
|
| Modifier and Type | Method and Description |
|---|---|
static WriteMode |
fromValue(String value) |
String |
getValue() |
static WriteMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteMode BATCH
public static final WriteMode STREAMING
public static WriteMode[] values()
for (WriteMode c : WriteMode.values()) System.out.println(c);
public static WriteMode 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 getValue()
Copyright © 2026 Alibaba Cloud Computing. All rights reserved.