Package com.gpudb.protocol
Class ShowTableResponse
java.lang.Object
com.gpudb.protocol.ShowTableResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of results returned by
GPUdb.showTable.Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theShowTableResponseparameteradditionalInfo.static final classA set of string constants for theShowTableResponseparametertableDescriptions.Constructor Summary
ConstructorsConstructorDescriptionConstructs a ShowTableResponse object with default parameters.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.Additional information about the respective tables intableNames.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames(same values assizes).getInfo()Additional information.IfGET_SIZESisTRUE, an array containing the number of unfiltered records in the cross product of the sub-tables of each corresponding join-table intableNames.Property maps of the respective tables intableNames.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.getSizes()IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames.List of descriptions for the respective tables intableNames.Value oftableName.longlongType IDs of the respective tables intableNames.Type labels of the respective tables intableNames.Type schemas of the respective tables intableNames.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setAdditionalInfo(List<Map<String, String>> additionalInfo) Additional information about the respective tables intableNames.setFullSizes(List<Long> fullSizes) IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames(same values assizes).Additional information.setJoinSizes(List<Double> joinSizes) IfGET_SIZESisTRUE, an array containing the number of unfiltered records in the cross product of the sub-tables of each corresponding join-table intableNames.Property maps of the respective tables intableNames.IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames.setTableDescriptions(List<List<String>> tableDescriptions) List of descriptions for the respective tables intableNames.setTableName(String tableName) Value oftableName.setTableNames(List<String> tableNames) setTotalFullSize(long totalFullSize) setTotalSize(long totalSize) setTypeIds(List<String> typeIds) Type IDs of the respective tables intableNames.setTypeLabels(List<String> typeLabels) Type labels of the respective tables intableNames.setTypeSchemas(List<String> typeSchemas) Type schemas of the respective tables intableNames.toString()
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.setTableName
Value oftableName.Parameters:tableName- The new value fortableName.Returns:thisto mimic the builder pattern.getTableNames
IftableNameis a table or view, then the single element of the array istableName. IftableNameis a schema andSHOW_CHILDRENis set toTRUE, then this array is populated with the names of all tables and views in the given schema; ifSHOW_CHILDRENisFALSE, then this array will only include the schema name itself. IftableNameis an empty string, then the array contains the names of all tables in the user’s default schema.Returns:The current value oftableNames.setTableNames
IftableNameis a table or view, then the single element of the array istableName. IftableNameis a schema andSHOW_CHILDRENis set toTRUE, then this array is populated with the names of all tables and views in the given schema; ifSHOW_CHILDRENisFALSE, then this array will only include the schema name itself. IftableNameis an empty string, then the array contains the names of all tables in the user’s default schema.Parameters:tableNames- The new value fortableNames.Returns:thisto mimic the builder pattern.getTableDescriptions
List of descriptions for the respective tables intableNames. Supported values:Returns:The current value oftableDescriptions.setTableDescriptions
List of descriptions for the respective tables intableNames. Supported values:Parameters:tableDescriptions- The new value fortableDescriptions.Returns:thisto mimic the builder pattern.setTypeIds
Type IDs of the respective tables intableNames.Parameters:typeIds- The new value fortypeIds.Returns:thisto mimic the builder pattern.getTypeSchemas
Type schemas of the respective tables intableNames.Returns:The current value oftypeSchemas.setTypeSchemas
Type schemas of the respective tables intableNames.Parameters:typeSchemas- The new value fortypeSchemas.Returns:thisto mimic the builder pattern.getTypeLabels
Type labels of the respective tables intableNames.Returns:The current value oftypeLabels.setTypeLabels
Type labels of the respective tables intableNames.Parameters:typeLabels- The new value fortypeLabels.Returns:thisto mimic the builder pattern.setProperties
Property maps of the respective tables intableNames.Parameters:properties- The new value forproperties.Returns:thisto mimic the builder pattern.getAdditionalInfo
Additional information about the respective tables intableNames.REQUEST_AVRO_TYPE: Method by which this table was created. Supported values:REQUEST_AVRO_JSON: The JSON representation of request creating this table. The default value is ”.PROTECTED: No longer used. Indicated whether the respective table was protected or not. Supported values:RECORD_BYTES: The number of in-memory bytes per record which is the sum of the byte sizes of all columns with property ‘data’.TOTAL_BYTES: The total size in bytes of all data stored in the table.COLLECTION_NAMES: [DEPRECATED—use schema_name instead] This will now contain the name of the schema for the table. There can only be one schema for a table.SCHEMA_NAME: The name of the schema for the table. There can only be one schema for a table.TABLE_TTL: The value of the time-to-live setting. Not present for schemas.REMAINING_TABLE_TTL: The remaining time-to-live, in minutes, before the respective table expires (-1 if it will never expire). Not present for schemas.PRIMARY_KEY_TYPE: The primary key type of the table (if it has a primary key). Supported values:FOREIGN_KEYS: Semicolon-separated list of foreign keys, of the format ‘source_column references target_table(primary_key_column)’. Not present for schemas. The default value is ”.FOREIGN_SHARD_KEY: Foreign shard key description of the format: <fk_foreign_key> references <pk_column_name> from <pk_table_name>(<pk_primary_key>). Not present for schemas. The default value is ”.PARTITION_TYPE: Partitioning scheme used for this table. Supported values:RANGE: Using range partitioning.INTERVAL: Using interval partitioning.LIST: Using manual list partitioning.HASH: Using hash partitioning.SERIES: Using series partitioning.NONE: Using no partitioning.
NONE.PARTITION_KEYS: Comma-separated list of partition keys. The default value is ”.PARTITION_DEFINITIONS: Comma-separated list of partition definitions, whose format depends on the partition_type. See partitioning documentation for details. The default value is ”.IS_AUTOMATIC_PARTITION: True if partitions will be created for LIST VALUES which don’t fall into existing partitions. The default value is ”.ATTRIBUTE_INDEXES: Semicolon-separated list of indexes. For column (attribute) indexes, only the indexed column name will be listed. For other index types, the index type will be listed with the colon-delimited indexed column(s) and the comma-delimited index option(s) using the form: <index_type>@<column_list>@<column_options>. Not present for schemas. The default value is ”.COLUMN_INFO: JSON-encoded string representing a map of column name to information including memory usage if theGET_COLUMN_INFOoption isTRUE. The default value is ”.GLOBAL_ACCESS_MODE: Returns the global access mode (i.e. lock status) for the table. Supported values:NO_ACCESS: No read/write operations are allowed on this table.READ_ONLY: Only read operations are allowed on this table.WRITE_ONLY: Only write operations are allowed on this table.READ_WRITE: All read/write operations are allowed on this table.
VIEW_TABLE_NAME: For materialized view the name of the view this member table is part of - if same as the table_name then this is the root of the view. The default value is ”.IS_VIEW_PERSISTED: True if the view named view_table_name is persisted - reported for each view member. Means method of recreating this member is saved - not the members data. The default value is ”.IS_DIRTY: True if some input table of the materialized view that affects this member table has been modified since the last refresh. The default value is ”.REFRESH_METHOD: For materialized view current refresh_method - one of manual, periodic, on_change. The default value is ”.REFRESH_START_TIME: For materialized view with periodic refresh_method the initial datetime string that periodic refreshes began. The default value is ”.REFRESH_STOP_TIME: Time at which the periodic view refresh stops. The default value is ”.REFRESH_PERIOD: For materialized view with periodic refresh_method the current refresh period in seconds. The default value is ”.LAST_REFRESH_TIME: For materialized view the datetime string indicating the last time the view was refreshed. The default value is ”.NEXT_REFRESH_TIME: For materialized view with periodic refresh_method a datetime string indicating the next time the view is to be refreshed. The default value is ”.USER_CHUNK_SIZE: User-specified number of records per chunk, if provided at table creation time. The default value is ”.USER_CHUNK_COLUMN_MAX_MEMORY: User-specified target max bytes per column in a chunk, if provided at table creation time. The default value is ”.USER_CHUNK_MAX_MEMORY: User-specified target max bytes for all columns in a chunk, if provided at table creation time. The default value is ”.OWNER_RESOURCE_GROUP: Name of the owner resource group. The default value is ”.ALTERNATE_SHARD_KEYS: Semicolon-separated list of shard keys that were equated in joins (applicable for join tables). The default value is ”.DATASOURCE_SUBSCRIPTIONS: Semicolon-separated list of datasource names the table has subscribed to. The default value is ”.NULL_MODIFYING_COLUMNS: Comma-separated list of null modifying column names. The default value is ”.COMPRESSION_CODEC: Default compression codec for the table. The default value is ”.CREATED_BY: User that created this table or view. The default value is ”.CREATED_TIME: Time (UTC) when this table or view was created. The default value is ”.LAST_READ_BY: User that last read this table or view. The default value is ”.LAST_READ_TIME: Time (UTC) when this table or view was last read. The default value is ”.READ_COUNT: Count of times this table or view was read. The default value is ”.LAST_WRITE_BY: User that last wrote to this table. The default value is ”.LAST_WRITE_TIME: Time (UTC) when this table was last written. The default value is ”.WRITE_COUNT: Count of times this table was written. The default value is ”.LAST_ALTER_BY: User that last altered this table or view. The default value is ”.LAST_ALTER_TIME: Time (UTC) when this table or view was last altered. The default value is ”.ALTER_COUNT: Count of times this table or view was altered. The default value is ”.
Returns:The current value ofadditionalInfo.setAdditionalInfo
Additional information about the respective tables intableNames.REQUEST_AVRO_TYPE: Method by which this table was created. Supported values:REQUEST_AVRO_JSON: The JSON representation of request creating this table. The default value is ”.PROTECTED: No longer used. Indicated whether the respective table was protected or not. Supported values:RECORD_BYTES: The number of in-memory bytes per record which is the sum of the byte sizes of all columns with property ‘data’.TOTAL_BYTES: The total size in bytes of all data stored in the table.COLLECTION_NAMES: [DEPRECATED—use schema_name instead] This will now contain the name of the schema for the table. There can only be one schema for a table.SCHEMA_NAME: The name of the schema for the table. There can only be one schema for a table.TABLE_TTL: The value of the time-to-live setting. Not present for schemas.REMAINING_TABLE_TTL: The remaining time-to-live, in minutes, before the respective table expires (-1 if it will never expire). Not present for schemas.PRIMARY_KEY_TYPE: The primary key type of the table (if it has a primary key). Supported values:FOREIGN_KEYS: Semicolon-separated list of foreign keys, of the format ‘source_column references target_table(primary_key_column)’. Not present for schemas. The default value is ”.FOREIGN_SHARD_KEY: Foreign shard key description of the format: <fk_foreign_key> references <pk_column_name> from <pk_table_name>(<pk_primary_key>). Not present for schemas. The default value is ”.PARTITION_TYPE: Partitioning scheme used for this table. Supported values:RANGE: Using range partitioning.INTERVAL: Using interval partitioning.LIST: Using manual list partitioning.HASH: Using hash partitioning.SERIES: Using series partitioning.NONE: Using no partitioning.
NONE.PARTITION_KEYS: Comma-separated list of partition keys. The default value is ”.PARTITION_DEFINITIONS: Comma-separated list of partition definitions, whose format depends on the partition_type. See partitioning documentation for details. The default value is ”.IS_AUTOMATIC_PARTITION: True if partitions will be created for LIST VALUES which don’t fall into existing partitions. The default value is ”.ATTRIBUTE_INDEXES: Semicolon-separated list of indexes. For column (attribute) indexes, only the indexed column name will be listed. For other index types, the index type will be listed with the colon-delimited indexed column(s) and the comma-delimited index option(s) using the form: <index_type>@<column_list>@<column_options>. Not present for schemas. The default value is ”.COLUMN_INFO: JSON-encoded string representing a map of column name to information including memory usage if theGET_COLUMN_INFOoption isTRUE. The default value is ”.GLOBAL_ACCESS_MODE: Returns the global access mode (i.e. lock status) for the table. Supported values:NO_ACCESS: No read/write operations are allowed on this table.READ_ONLY: Only read operations are allowed on this table.WRITE_ONLY: Only write operations are allowed on this table.READ_WRITE: All read/write operations are allowed on this table.
VIEW_TABLE_NAME: For materialized view the name of the view this member table is part of - if same as the table_name then this is the root of the view. The default value is ”.IS_VIEW_PERSISTED: True if the view named view_table_name is persisted - reported for each view member. Means method of recreating this member is saved - not the members data. The default value is ”.IS_DIRTY: True if some input table of the materialized view that affects this member table has been modified since the last refresh. The default value is ”.REFRESH_METHOD: For materialized view current refresh_method - one of manual, periodic, on_change. The default value is ”.REFRESH_START_TIME: For materialized view with periodic refresh_method the initial datetime string that periodic refreshes began. The default value is ”.REFRESH_STOP_TIME: Time at which the periodic view refresh stops. The default value is ”.REFRESH_PERIOD: For materialized view with periodic refresh_method the current refresh period in seconds. The default value is ”.LAST_REFRESH_TIME: For materialized view the datetime string indicating the last time the view was refreshed. The default value is ”.NEXT_REFRESH_TIME: For materialized view with periodic refresh_method a datetime string indicating the next time the view is to be refreshed. The default value is ”.USER_CHUNK_SIZE: User-specified number of records per chunk, if provided at table creation time. The default value is ”.USER_CHUNK_COLUMN_MAX_MEMORY: User-specified target max bytes per column in a chunk, if provided at table creation time. The default value is ”.USER_CHUNK_MAX_MEMORY: User-specified target max bytes for all columns in a chunk, if provided at table creation time. The default value is ”.OWNER_RESOURCE_GROUP: Name of the owner resource group. The default value is ”.ALTERNATE_SHARD_KEYS: Semicolon-separated list of shard keys that were equated in joins (applicable for join tables). The default value is ”.DATASOURCE_SUBSCRIPTIONS: Semicolon-separated list of datasource names the table has subscribed to. The default value is ”.NULL_MODIFYING_COLUMNS: Comma-separated list of null modifying column names. The default value is ”.COMPRESSION_CODEC: Default compression codec for the table. The default value is ”.CREATED_BY: User that created this table or view. The default value is ”.CREATED_TIME: Time (UTC) when this table or view was created. The default value is ”.LAST_READ_BY: User that last read this table or view. The default value is ”.LAST_READ_TIME: Time (UTC) when this table or view was last read. The default value is ”.READ_COUNT: Count of times this table or view was read. The default value is ”.LAST_WRITE_BY: User that last wrote to this table. The default value is ”.LAST_WRITE_TIME: Time (UTC) when this table was last written. The default value is ”.WRITE_COUNT: Count of times this table was written. The default value is ”.LAST_ALTER_BY: User that last altered this table or view. The default value is ”.LAST_ALTER_TIME: Time (UTC) when this table or view was last altered. The default value is ”.ALTER_COUNT: Count of times this table or view was altered. The default value is ”.
Parameters:additionalInfo- The new value foradditionalInfo.Returns:thisto mimic the builder pattern.setSizes
IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames. Otherwise, an empty array.Parameters:sizes- The new value forsizes.Returns:thisto mimic the builder pattern.setFullSizes
IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames(same values assizes). Otherwise, an empty array.Parameters:fullSizes- The new value forfullSizes.Returns:thisto mimic the builder pattern.getJoinSizes
IfGET_SIZESisTRUE, an array containing the number of unfiltered records in the cross product of the sub-tables of each corresponding join-table intableNames. For simple tables, this number will be the same assizes. For join-tables, this value gives the number of joined-table rows that must be processed by any aggregate functions operating on the table. Otherwise, (ifGET_SIZESisFALSE), an empty array.Returns:The current value ofjoinSizes.setJoinSizes
IfGET_SIZESisTRUE, an array containing the number of unfiltered records in the cross product of the sub-tables of each corresponding join-table intableNames. For simple tables, this number will be the same assizes. For join-tables, this value gives the number of joined-table rows that must be processed by any aggregate functions operating on the table. Otherwise, (ifGET_SIZESisFALSE), an empty array.Parameters:joinSizes- The new value forjoinSizes.Returns:thisto mimic the builder pattern.setTotalSize
Parameters:totalSize- The new value fortotalSize.Returns:thisto mimic the builder pattern.setInfo
Additional information.Parameters:info- The new value forinfo.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: