Package org.yamcs.yarch
Enum TableWriter.InsertMode
- All Implemented Interfaces:
Serializable
,Comparable<TableWriter.InsertMode>
- Enclosing class:
- TableWriter
-
Enum Constant Summary
Enum ConstantDescriptioninsert rows whose key do not exist, ignore the otherslike INSERT but if the row already exist, append to it all the columns that are not already therelike INSERT but do not update histograms.insert rows as they come, overwriting old values if the key already existlike INSERT_APPEND but if the row already exists, add all the columns from the new row, overwriting old values if necessary -
Method Summary
Modifier and TypeMethodDescriptionstatic TableWriter.InsertMode
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 Details
-
INSERT
insert rows whose key do not exist, ignore the others -
UPSERT
insert rows as they come, overwriting old values if the key already exist -
INSERT_APPEND
like INSERT but if the row already exist, append to it all the columns that are not already there -
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
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
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
-