Enum WriterEvents.State

java.lang.Object
java.lang.Enum<WriterEvents.State>
org.apache.drill.exec.vector.accessor.writer.WriterEvents.State
All Implemented Interfaces:
Serializable, Comparable<WriterEvents.State>
Enclosing interface:
WriterEvents

public static enum WriterEvents.State extends Enum<WriterEvents.State>
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 Details

    • IDLE

      public static final WriterEvents.State IDLE
      No write is in progress. Nothing need be done to newly-added writers.
    • IN_WRITE

      public static final WriterEvents.State IN_WRITE
      startWrite() has been called to start a write operation (start a batch), but startValue() has not yet been called to start a row (or value within an array). startWrite() must be called on newly added columns.
    • IN_ROW

      public static final WriterEvents.State IN_ROW
      Both startWrite() and startValue() has been called on the tuple to prepare for writing values, and both must be called on newly-added vectors.
  • Method Details

    • values

      public static WriterEvents.State[] 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

      public static WriterEvents.State valueOf(String name)
      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 name
      NullPointerException - if the argument is null