Enum WriterEvents.State
- All Implemented Interfaces:
Serializable
,Comparable<WriterEvents.State>
- Enclosing interface:
- WriterEvents
Tracks the write state of a tuple or variant to allow applying the correct
operations to newly-added columns to synchronize them with the rest
of the writers.
-
Enum Constant Summary
Enum ConstantDescriptionNo write is in progress.BothstartWrite()
andstartValue()
has been called on the tuple to prepare for writing values, and both must be called on newly-added vectors.startWrite()
has been called to start a write operation (start a batch), butstartValue()
has not yet been called to start a row (or value within an array). -
Method Summary
Modifier and TypeMethodDescriptionstatic WriterEvents.State
Returns the enum constant of this type with the specified name.static WriterEvents.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IDLE
No write is in progress. Nothing need be done to newly-added writers. -
IN_WRITE
startWrite()
has been called to start a write operation (start a batch), butstartValue()
has not yet been called to start a row (or value within an array).startWrite()
must be called on newly added columns. -
IN_ROW
BothstartWrite()
andstartValue()
has been called on the tuple to prepare for writing values, and both must be called on newly-added vectors.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-