showTable
Retrieves detailed information about a table, view, or schema, specified intableName. If the suppliedtableNameis a schema the call can return information about either the schema itself or the tables and views it contains. IftableNameis empty, information about all schemas will be returned.If the option
GET_SIZESis set toTRUE, then the number of records in each table is returned (insizesandfullSizes), along with the total number of objects across all requested tables (intotalSizeandtotalFullSize).For a schema, setting the
SHOW_CHILDRENoption toFALSEreturns only information about the schema itself; settingSHOW_CHILDRENtoTRUEreturns a list of tables and views contained in the schema, along with their corresponding detail.To retrieve a list of every table, view, and schema in the database, set
tableNameto ’*’ andSHOW_CHILDRENtoTRUE. When doing this, the returnedtotalSizeandtotalFullSizewill not include the sizes of non-base tables (e.g., filters, views, joins, etc.).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.showTable
public ShowTableResponse showTable(String tableName, Map<String, String> options) throws GPUdbException Retrieves detailed information about a table, view, or schema, specified intableName. If the suppliedtableNameis a schema the call can return information about either the schema itself or the tables and views it contains. IftableNameis empty, information about all schemas will be returned.If the option
GET_SIZESis set toTRUE, then the number of records in each table is returned (insizesandfullSizes), along with the total number of objects across all requested tables (intotalSizeandtotalFullSize).For a schema, setting the
SHOW_CHILDRENoption toFALSEreturns only information about the schema itself; settingSHOW_CHILDRENtoTRUEreturns a list of tables and views contained in the schema, along with their corresponding detail.To retrieve a list of every table, view, and schema in the database, set
tableNameto ’*’ andSHOW_CHILDRENtoTRUE. When doing this, the returnedtotalSizeandtotalFullSizewill not include the sizes of non-base tables (e.g., filters, views, joins, etc.).Parameters:tableName- Name of the table for which to retrieve the information, in [schema_name.]table_name format, using standard name resolution rules. If blank, then returns information about all tables and views.options- Optional parameters.DEPENDENCIES: Include view dependencies in the output. Supported values:The default value isFALSE.FORCE_SYNCHRONOUS: IfTRUEthen the table sizes will wait for read lock before returning. Supported values:The default value isTRUE.GET_ACCESS_DATA: IfTRUEthen data about the last read, write, alter and create will be returned. Supported values:The default value isFALSE.GET_CACHED_SIZES: IfTRUEthen the number of records in each table, along with a cumulative count, will be returned; blank, otherwise. This version will return the sizes cached at rank 0, which may be stale if there is a multihead insert occurring. Supported values:The default value isFALSE.GET_SIZES: IfTRUEthen the number of records in each table, along with a cumulative count, will be returned; blank, otherwise. Supported values:The default value isFALSE.REFERENCING_MATERIALIZED_VIEWS: Include materialized views using this table as a source in the output. Supported values:The default value isFALSE.SKIP_ADDITIONAL_INFO: IfTRUEthen the response will not populate the additional_info field. Supported values:The default value isFALSE.NO_ERROR_IF_NOT_EXISTS: IfFALSEwill return an error if the providedtableNamedoes not exist. IfTRUEthen it will return an empty result. Supported values:The default value isFALSE.SKIP_TEMP_SCHEMAS: IfTRUEthen the table list will not include tables from SYS_TEMP and other system temporary schemas. This is the default behavior for non-admin users. Supported values:The default value isFALSE.SHOW_CHILDREN: IftableNameis a schema, thenTRUEwill return information about the tables and views in the schema, andFALSEwill return information about the schema itself. IftableNameis a table or view,SHOW_CHILDRENmust beFALSE. IftableNameis empty, thenSHOW_CHILDRENmust beTRUE. Supported values:The default value isTRUE.GET_COLUMN_INFO: IfTRUEthen column info (memory usage, etc) will be 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.