@EnumDescription(value="Concurrency modes for write operations.") public enum WriteConcurrencyMode extends Enum<WriteConcurrencyMode>
| Enum Constant and Description |
|---|
NON_BLOCKING_CONCURRENCY_CONTROL |
OPTIMISTIC_CONCURRENCY_CONTROL |
SINGLE_WRITER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNonBlockingConcurrencyControl() |
static boolean |
isNonBlockingConcurrencyControl(String name) |
boolean |
isOptimisticConcurrencyControl() |
boolean |
supportsMultiWriter() |
static boolean |
supportsMultiWriter(String name) |
static WriteConcurrencyMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteConcurrencyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@EnumFieldDescription(value="Only one active writer to the table. Maximizes throughput.") public static final WriteConcurrencyMode SINGLE_WRITER
@EnumFieldDescription(value="Multiple writers can operate on the table with lazy conflict resolution using locks. This means that only one writer succeeds if multiple writers write to the same file group.") public static final WriteConcurrencyMode OPTIMISTIC_CONCURRENCY_CONTROL
@EnumFieldDescription(value="Multiple writers can operate on the table with non-blocking conflict resolution. The writers can write into the same file group with the conflicts resolved automatically by the query reader and the compactor.") public static final WriteConcurrencyMode NON_BLOCKING_CONCURRENCY_CONTROL
public static WriteConcurrencyMode[] values()
for (WriteConcurrencyMode c : WriteConcurrencyMode.values()) System.out.println(c);
public static WriteConcurrencyMode 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 boolean supportsMultiWriter()
public static boolean supportsMultiWriter(String name)
public boolean isOptimisticConcurrencyControl()
public boolean isNonBlockingConcurrencyControl()
public static boolean isNonBlockingConcurrencyControl(String name)
Copyright © 2024 The Apache Software Foundation. All rights reserved.