clearTable
Clears (drops) one or all tables in the database cluster. The operation is synchronous meaning that the table will be cleared before the function returns. The response payload returns the status of the operation along with the name of the table that was cleared.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.clearTable
public ClearTableResponse clearTable(String tableName, String authorization, Map<String, String> options) throws GPUdbException Clears (drops) one or all tables in the database cluster. The operation is synchronous meaning that the table will be cleared before the function returns. The response payload returns the status of the operation along with the name of the table that was cleared.Parameters:tableName- Name of the table to be cleared, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table. Empty string clears all available tables, though this behavior is be prevented by default via gpudb.conf parameter ‘disable_clear_all’. The default value is ”.authorization- No longer used. User can pass an empty string. The default value is ”.options- Optional parameters.NO_ERROR_IF_NOT_EXISTS: IfTRUEand if the table specified intableNamedoes not exist no error is returned. IfFALSEand if the table specified intableNamedoes not exist then an error is returned. Supported values:The default value isFALSE.
Map.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.