@EnumDescription(value="Concurrency modes for write operations.") public enum WriteConcurrencyMode extends Enum<WriteConcurrencyMode>
| Enum Constant and Description |
|---|
OPTIMISTIC_CONCURRENCY_CONTROL |
SINGLE_WRITER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supportsOptimisticConcurrencyControl() |
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
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 supportsOptimisticConcurrencyControl()
Copyright © 2024 The Apache Software Foundation. All rights reserved.