deleteRecords
Deletes record(s) matching the provided criteria from the given table. The record selection criteria can either be one or moreexpressions(matching multiple records), a single record identified byRECORD_IDoptions, or all records when usingDELETE_ALL_RECORDS. Note that the three selection criteria are mutually exclusive. This operation cannot be run on a view. The operation is synchronous meaning that a response will not be available until the request is completely processed and all the matching records are deleted.Parameters:request-Requestobject containing the parameters for the operation.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.deleteRecords
public DeleteRecordsResponse deleteRecords(String tableName, List<String> expressions, Map<String, String> options) throws GPUdbException Deletes record(s) matching the provided criteria from the given table. The record selection criteria can either be one or moreexpressions(matching multiple records), a single record identified byRECORD_IDoptions, or all records when usingDELETE_ALL_RECORDS. Note that the three selection criteria are mutually exclusive. This operation cannot be run on a view. The operation is synchronous meaning that a response will not be available until the request is completely processed and all the matching records are deleted.Parameters:tableName- Name of the table from which to delete records, in [schema_name.]table_name format, using standard name resolution rules. Must contain the name of an existing table; not applicable to views.expressions- A list of the actual predicates, one for each select; format should follow the guidelines provided here. Specifying one or moreexpressionsis mutually exclusive to specifyingRECORD_IDin theoptions.options- Optional parameters.GLOBAL_EXPRESSION: An optional global expression to reduce the search space of theexpressions. The default value is ”.RECORD_ID: A record ID identifying a single record, obtained at the time ofinsertion of the recordor by callinggetRecordsFromCollectionwith the *return_record_ids* option. This option cannot be used to delete records from replicated tables.DELETE_ALL_RECORDS: If set toTRUE, all records in the table will be deleted. If set toFALSE, then the option is effectively ignored. Supported values:The default value isFALSE.
Map.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.