Module org.elasticsearch.compute
Enum Class BatchContext.BatchLifecycle
java.lang.Object
java.lang.Enum<BatchContext.BatchLifecycle>
org.elasticsearch.compute.operator.exchange.BatchContext.BatchLifecycle
- All Implemented Interfaces:
Serializable,Comparable<BatchContext.BatchLifecycle>,Constable
- Enclosing class:
BatchContext
Batch lifecycle states.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProcessing a batch - receiving and processing pagesLast page received, waiting for pipeline to drain before flushBetween batches, ready for next batchInitial state - never received any batch -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchContext.BatchLifecycleReturns the enum constant of this class with the specified name.static BatchContext.BatchLifecycle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_STARTED
Initial state - never received any batch -
ACTIVE
Processing a batch - receiving and processing pages -
DRAINING
Last page received, waiting for pipeline to drain before flush -
IDLE
Between batches, ready for next batch
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-