public static final class AppendRecordsRequest.Options extends Object
OFFSET
: A
positive integer indicating the number of initial results to skip from
sourceTableName
. Default is 0. The minimum allowed value is 0.
The maximum allowed value is MAX_INT. The default value is '0'.
LIMIT
: A positive
integer indicating the maximum number of results to be returned from
sourceTableName
. Or END_OF_SET (-9999) to indicate that the max
number of results should be returned. The default value is '-9999'.
EXPRESSION
:
Optional filter expression to apply to the sourceTableName
. The
default value is ''.
ORDER_BY
:
Comma-separated list of the columns to be sorted by from source table
(specified by sourceTableName
), e.g., 'timestamp asc, x desc'.
The order_by
columns do not have to be present in fieldMap
. The default value is ''.
UPDATE_ON_EXISTING_PK
: Specifies the record collision policy for
inserting the source table records (specified by sourceTableName
) into the target table (specified by tableName
)
table with a primary key. If set to true
, any existing
target table record with primary key values that match those of a source
table record being inserted will be replaced by that new record. If set
to false
, any existing target table record with primary key
values that match those of a source table record being inserted will
remain unchanged and the new record discarded. If the specified table
does not have a primary key, then this option is ignored.
Supported values:
The default value is FALSE
.
TRUNCATE_STRINGS
: If set to true
, it allows inserting longer
strings into smaller charN string columns by truncating the longer
strings to fit.
Supported values:
The default value is FALSE
.
Map
.
A set of string constants for the parameter options
.Modifier and Type | Field and Description |
---|---|
static String |
EXPRESSION
Optional filter expression to apply to the
sourceTableName . |
static String |
FALSE |
static String |
LIMIT
A positive integer indicating the maximum number of results to be
returned from
sourceTableName . |
static String |
OFFSET
A positive integer indicating the number of initial results to skip
from
sourceTableName . |
static String |
ORDER_BY
Comma-separated list of the columns to be sorted by from source
table (specified by
sourceTableName ), e.g., 'timestamp asc,
x desc'. |
static String |
TRUE |
static String |
TRUNCATE_STRINGS
If set to
true , it allows inserting longer strings into
smaller charN string columns by truncating the longer strings to
fit. |
static String |
UPDATE_ON_EXISTING_PK
Specifies the record collision policy for inserting the source table
records (specified by
sourceTableName ) into the target table
(specified by tableName ) table with a primary key. |
public static final String OFFSET
sourceTableName
. Default is 0. The minimum allowed
value is 0. The maximum allowed value is MAX_INT. The default value
is '0'.public static final String LIMIT
sourceTableName
. Or END_OF_SET (-9999) to
indicate that the max number of results should be returned. The
default value is '-9999'.public static final String EXPRESSION
sourceTableName
.
The default value is ''.public static final String ORDER_BY
sourceTableName
), e.g., 'timestamp asc,
x desc'. The order_by
columns do not have to be present in
fieldMap
. The default value is ''.public static final String UPDATE_ON_EXISTING_PK
sourceTableName
) into the target table
(specified by tableName
) table with a primary key. If set to true
, any existing
target table record with primary key values that match those of a
source table record being inserted will be replaced by that new
record. If set to false
, any existing target table record
with primary key values that match those of a source table record
being inserted will remain unchanged and the new record discarded.
If the specified table does not have a primary key, then this option
is ignored.
Supported values:
The default value is FALSE
.public static final String TRUE
public static final String FALSE
public static final String TRUNCATE_STRINGS
true
, it allows inserting longer strings into
smaller charN string columns by truncating the longer strings to
fit.
Supported values:
The default value is FALSE
.Copyright © 2020. All rights reserved.