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 source table
records (specified by sourceTableName
) into a target table
(specified by tableName
) with a primary key. If
set to true
, any existing table record with
primary key values that match those of a source table record being
inserted will be replaced by that
new record (the new data will be "upserted"). If set to
false
, any existing table record with primary
key values that match those of a source table record being inserted will
remain unchanged, while the
source record will be rejected and an error handled as determined by
ignore_existing_pk
. If the specified table does not have a
primary key,
then this option has no effect.
Supported values:
TRUE
: Upsert new records when primary keys match existing records
FALSE
: Reject new
records when primary keys match existing records
FALSE
.
IGNORE_EXISTING_PK
: Specifies the record collision error-suppression
policy for
inserting source table records (specified by sourceTableName
)
into a target table
(specified by tableName
) with a primary key, only
used when not in upsert mode (upsert mode is disabled when
update_on_existing_pk
is
false
). If set to
true
, any source table record being inserted that
is rejected for having primary key values that match those of an
existing target table record will
be ignored with no error generated. If false
,
the rejection of any source table record for having primary key values
matching an existing target
table record will result in an error being raised. If the specified
table does not have a primary
key or if upsert mode is in effect (update_on_existing_pk
is
true
), then this option has no effect.
Supported values:
TRUE
: Ignore source table records whose primary key values collide with
those of target table records
FALSE
: Raise an
error for any source table record whose primary key values collide with
those of a target table record
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 |
IGNORE_EXISTING_PK
|
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 source table
records (specified by
sourceTableName ) into a target table
(specified by tableName ) with a
Method Summary
Copyright © 2024. All rights reserved. |