@EnumDescription(value="Types of executor that implements org.apache.hudi.common.util.queue.HoodieExecutor. The executor orchestrates concurrent producers and consumers communicating through a message queue.") public enum ExecutorType extends Enum<ExecutorType>
HoodieExecutor.| Enum Constant and Description |
|---|
BOUNDED_IN_MEMORY |
DISRUPTOR |
SIMPLE |
| Modifier and Type | Method and Description |
|---|---|
static ExecutorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExecutorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@EnumFieldDescription(value="Executor which orchestrates concurrent producers and consumers communicating through a bounded in-memory message queue using LinkedBlockingQueue. This queue will use extra lock to balance producers and consumers.") public static final ExecutorType BOUNDED_IN_MEMORY
@EnumFieldDescription(value="Executor which orchestrates concurrent producers and consumers communicating through disruptor as a lock free message queue to gain better writing performance. Although DisruptorExecutor is still an experimental feature.") public static final ExecutorType DISRUPTOR
@EnumFieldDescription(value="Executor with no inner message queue and no inner lock. Consuming and writing records from iterator directly. The advantage is that there is no need for additional memory and cpu resources due to lock or multithreading. The disadvantage is that the executor is a single-write-single-read model, cannot support functions such as speed limit and can not de-couple the network read (shuffle read) and network write (writing objects/files to storage) anymore.") public static final ExecutorType SIMPLE
public static ExecutorType[] values()
for (ExecutorType c : ExecutorType.values()) System.out.println(c);
public static ExecutorType 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 nullCopyright © 2024 The Apache Software Foundation. All rights reserved.