public static final class AlterTableRequest.Options extends Object
COLUMN_DEFAULT_VALUE: When adding a column, set a default value for
existing records. For nullable columns, the default value will be null,
regardless of data type.
COLUMN_PROPERTIES: When adding or changing a column, set the column
properties (strings, separated by a comma: data, store_only,
text_search, char8, int8 etc).
COLUMN_TYPE:
When adding or changing a column, set the column type (strings,
separated by a comma: int, double, string, null etc).
COMPRESSION_TYPE: When setting column compression (set_column_compression for action), compression type to use:
none (to use no compression) or a valid compression type.
Supported values:
The default value is SNAPPY.
COPY_VALUES_FROM_COLUMN: please see add_column_expression instead.
RENAME_COLUMN: When changing a column, specify new column name.
VALIDATE_CHANGE_COLUMN: When changing a column, validate the change
before applying it. If true, then validate all values. A value
too large (or too long) for the new type will prevent any change. If
false, then when a value is too large or long, it will be
truncated.
Supported values:
The default value is TRUE.
UPDATE_LAST_ACCESS_TIME: Indicates whether need to update the
last_access_time.
Supported values:
The default value is TRUE.
ADD_COLUMN_EXPRESSION: expression for new column's values (optional
with add_column). Any valid expressions including existing columns.
Map.
A set of string constants for the parameter options.| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_COLUMN_EXPRESSION
expression for new column's values (optional with add_column).
|
static String |
COLUMN_DEFAULT_VALUE
When adding a column, set a default value for existing records.
|
static String |
COLUMN_PROPERTIES
When adding or changing a column, set the column properties
(strings, separated by a comma: data, store_only, text_search,
char8, int8 etc).
|
static String |
COLUMN_TYPE
When adding or changing a column, set the column type (strings,
separated by a comma: int, double, string, null etc).
|
static String |
COMPRESSION_TYPE
When setting column compression (
set_column_compression for
action), compression type to use: none (to use no
compression) or a valid compression type. |
static String |
COPY_VALUES_FROM_COLUMN
please see add_column_expression instead.
|
static String |
FALSE |
static String |
LZ4 |
static String |
LZ4HC |
static String |
NONE |
static String |
RENAME_COLUMN
When changing a column, specify new column name.
|
static String |
SNAPPY |
static String |
TRUE |
static String |
UPDATE_LAST_ACCESS_TIME
Indicates whether need to update the last_access_time.
|
static String |
VALIDATE_CHANGE_COLUMN
When changing a column, validate the change before applying it.
|
public static final String COLUMN_DEFAULT_VALUE
public static final String COLUMN_PROPERTIES
public static final String COLUMN_TYPE
public static final String COMPRESSION_TYPE
set_column_compression for
action), compression type to use: none (to use no
compression) or a valid compression type.
Supported values:
The default value is SNAPPY.public static final String NONE
public static final String SNAPPY
public static final String LZ4
public static final String LZ4HC
public static final String COPY_VALUES_FROM_COLUMN
public static final String RENAME_COLUMN
public static final String VALIDATE_CHANGE_COLUMN
true, then validate all values. A value too large (or too
long) for the new type will prevent any change. If false,
then when a value is too large or long, it will be truncated.
Supported values:
The default value is TRUE.public static final String TRUE
public static final String FALSE
public static final String UPDATE_LAST_ACCESS_TIME
TRUE.public static final String ADD_COLUMN_EXPRESSION
Copyright © 2019. All rights reserved.