Package org.yamcs.yarch
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 Summary
Enum Constants Enum Constant Description INSERT
insert rows whose key do not exist, ignore the othersINSERT_APPEND
like INSERT but if the row already exist, append to it all the columns that are not already thereLOAD
like INSERT but do not update histograms.UPSERT
insert rows as they come, overwriting old values if the key already existUPSERT_APPEND
like INSERT_APPEND but if the row already exists, add all the columns from the new row, overwriting old values if necessary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TableWriter.InsertMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static TableWriter.InsertMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static TableWriter.InsertMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TableWriter.InsertMode c : TableWriter.InsertMode.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
-