public static final class RawUpdateRecordsRequest.Options extends Object
GLOBAL_EXPRESSION
: An optional global expression to reduce the search
space of the predicates listed in expressions
.
BYPASS_SAFETY_CHECKS
: When set to 'true', all predicates are available
for primary key updates. Keep in mind that it is possible to destroy
data in this case, since a single predicate may match multiple objects
(potentially all of records of a table), and then updating all of those
records to have the same primary key will, due to the primary key
uniqueness constraints, effectively delete all but one of those updated
records.
Supported values:
The default value is FALSE
.
UPDATE_ON_EXISTING_PK
: Can be used to customize behavior when the
updated primary key value already exists, as described in GPUdb.insertRecordsRaw(RawInsertRecordsRequest)
.
Supported values:
The default value is FALSE
.
RECORD_ID
:
ID of a single record to be updated (returned in the call to GPUdb.insertRecordsRaw(RawInsertRecordsRequest)
or GPUdb.getRecordsFromCollectionRaw(GetRecordsFromCollectionRequest)
).
options
.Modifier and Type | Field and Description |
---|---|
static String |
BYPASS_SAFETY_CHECKS
When set to 'true', all predicates are available for primary key
updates.
|
static String |
FALSE |
static String |
GLOBAL_EXPRESSION
An optional global expression to reduce the search space of the
predicates listed in
expressions . |
static String |
RECORD_ID
ID of a single record to be updated (returned in the call to
GPUdb.insertRecordsRaw(RawInsertRecordsRequest) or GPUdb.getRecordsFromCollectionRaw(GetRecordsFromCollectionRequest) ). |
static String |
TRUE |
static String |
UPDATE_ON_EXISTING_PK
Can be used to customize behavior when the updated primary key value
already exists, as described in
GPUdb.insertRecordsRaw(RawInsertRecordsRequest) . |
public static final String GLOBAL_EXPRESSION
expressions
.public static final String BYPASS_SAFETY_CHECKS
FALSE
.public static final String TRUE
public static final String FALSE
public static final String UPDATE_ON_EXISTING_PK
GPUdb.insertRecordsRaw(RawInsertRecordsRequest)
.
Supported values:
The default value is FALSE
.public static final String RECORD_ID
GPUdb.insertRecordsRaw(RawInsertRecordsRequest)
or GPUdb.getRecordsFromCollectionRaw(GetRecordsFromCollectionRequest)
).Copyright © 2017. All rights reserved.