Enum TableWriter.InsertMode

java.lang.Object
java.lang.Enum<TableWriter.InsertMode>
org.yamcs.yarch.TableWriter.InsertMode
All Implemented Interfaces:
Serializable, Comparable<TableWriter.InsertMode>
Enclosing class:
TableWriter

public static enum TableWriter.InsertMode extends Enum<TableWriter.InsertMode>
  • Enum Constant Details

    • INSERT

      public static final TableWriter.InsertMode INSERT
      insert rows whose key do not exist, ignore the others
    • UPSERT

      public static final TableWriter.InsertMode UPSERT
      insert rows as they come, overwriting old values if the key already exist
    • INSERT_APPEND

      public static final TableWriter.InsertMode INSERT_APPEND
      like INSERT but if the row already exist, append to it all the columns that are not already there
    • UPSERT_APPEND

      public static final TableWriter.InsertMode UPSERT_APPEND
      like INSERT_APPEND but if the row already exists, add all the columns from the new row, overwriting old values if necessary
    • LOAD

      public static final TableWriter.InsertMode LOAD
      like INSERT but do not update histograms.

      used for bulk load when we know that the data cannot be in the table

  • Method Details

    • values

      public static TableWriter.InsertMode[] 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 TableWriter.InsertMode 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