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.IndexedRecord
public class ShowTableResponse extends Object implements org.apache.avro.generic.IndexedRecord
A set of results returned byGPUdb.showTable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShowTableResponse.AdditionalInfoA set of string constants for theShowTableResponseparameteradditionalInfo.static classShowTableResponse.TableDescriptionsA set of string constants for theShowTableResponseparametertableDescriptions.
-
Constructor Summary
Constructors Constructor Description ShowTableResponse()Constructs a ShowTableResponse object with default parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Objectget(int index)This method supports the Avro framework and is not intended to be called directly by the user.List<Map<String,String>>getAdditionalInfo()Additional information about the respective tables intableNames.static org.apache.avro.SchemagetClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.List<Long>getFullSizes()IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames(same values assizes).Map<String,String>getInfo()Additional information.List<Double>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.List<Map<String,List<String>>>getProperties()Property maps of the respective tables intableNames.org.apache.avro.SchemagetSchema()This method supports the Avro framework and is not intended to be called directly by the user.List<Long>getSizes()IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames.List<List<String>>getTableDescriptions()List of descriptions for the respective tables intableNames.StringgetTableName()Value oftableName.List<String>getTableNames()longgetTotalFullSize()longgetTotalSize()List<String>getTypeIds()Type IDs of the respective tables intableNames.List<String>getTypeLabels()Type labels of the respective tables intableNames.List<String>getTypeSchemas()Type schemas of the respective tables intableNames.inthashCode()voidput(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.ShowTableResponsesetAdditionalInfo(List<Map<String,String>> additionalInfo)Additional information about the respective tables intableNames.ShowTableResponsesetFullSizes(List<Long> fullSizes)IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames(same values assizes).ShowTableResponsesetInfo(Map<String,String> info)Additional information.ShowTableResponsesetJoinSizes(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.ShowTableResponsesetProperties(List<Map<String,List<String>>> properties)Property maps of the respective tables intableNames.ShowTableResponsesetSizes(List<Long> sizes)IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames.ShowTableResponsesetTableDescriptions(List<List<String>> tableDescriptions)List of descriptions for the respective tables intableNames.ShowTableResponsesetTableName(String tableName)Value oftableName.ShowTableResponsesetTableNames(List<String> tableNames)ShowTableResponsesetTotalFullSize(long totalFullSize)ShowTableResponsesetTotalSize(long totalSize)ShowTableResponsesetTypeIds(List<String> typeIds)Type IDs of the respective tables intableNames.ShowTableResponsesetTypeLabels(List<String> typeLabels)Type labels of the respective tables intableNames.ShowTableResponsesetTypeSchemas(List<String> typeSchemas)Type schemas of the respective tables intableNames.StringtoString()
-
-
-
Method Detail
-
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.
-
getTableName
public String getTableName()
Value oftableName.- Returns:
- The current value of
tableName.
-
setTableName
public ShowTableResponse setTableName(String tableName)
Value oftableName.- Parameters:
tableName- The new value fortableName.- Returns:
thisto mimic the builder pattern.
-
getTableNames
public List<String> 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 of
tableNames.
-
setTableNames
public ShowTableResponse setTableNames(List<String> tableNames)
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
public List<List<String>> getTableDescriptions()
List of descriptions for the respective tables intableNames. Supported values:- Returns:
- The current value of
tableDescriptions.
-
setTableDescriptions
public ShowTableResponse setTableDescriptions(List<List<String>> tableDescriptions)
List of descriptions for the respective tables intableNames. Supported values:- Parameters:
tableDescriptions- The new value fortableDescriptions.- Returns:
thisto mimic the builder pattern.
-
getTypeIds
public List<String> getTypeIds()
Type IDs of the respective tables intableNames.- Returns:
- The current value of
typeIds.
-
setTypeIds
public ShowTableResponse setTypeIds(List<String> typeIds)
Type IDs of the respective tables intableNames.- Parameters:
typeIds- The new value fortypeIds.- Returns:
thisto mimic the builder pattern.
-
getTypeSchemas
public List<String> getTypeSchemas()
Type schemas of the respective tables intableNames.- Returns:
- The current value of
typeSchemas.
-
setTypeSchemas
public ShowTableResponse setTypeSchemas(List<String> typeSchemas)
Type schemas of the respective tables intableNames.- Parameters:
typeSchemas- The new value fortypeSchemas.- Returns:
thisto mimic the builder pattern.
-
getTypeLabels
public List<String> getTypeLabels()
Type labels of the respective tables intableNames.- Returns:
- The current value of
typeLabels.
-
setTypeLabels
public ShowTableResponse setTypeLabels(List<String> typeLabels)
Type labels of the respective tables intableNames.- Parameters:
typeLabels- The new value fortypeLabels.- Returns:
thisto mimic the builder pattern.
-
getProperties
public List<Map<String,List<String>>> getProperties()
Property maps of the respective tables intableNames.- Returns:
- The current value of
properties.
-
setProperties
public ShowTableResponse setProperties(List<Map<String,List<String>>> properties)
Property maps of the respective tables intableNames.- Parameters:
properties- The new value forproperties.- Returns:
thisto mimic the builder pattern.
-
getAdditionalInfo
public List<Map<String,String>> 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 partitioningINTERVAL: Using interval partitioningLIST: Using manual list partitioningHASH: 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 of
additionalInfo.
-
setAdditionalInfo
public ShowTableResponse setAdditionalInfo(List<Map<String,String>> additionalInfo)
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 partitioningINTERVAL: Using interval partitioningLIST: Using manual list partitioningHASH: 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.
-
getSizes
public List<Long> getSizes()
IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames. Otherwise, an empty array.- Returns:
- The current value of
sizes.
-
setSizes
public ShowTableResponse setSizes(List<Long> sizes)
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.
-
getFullSizes
public List<Long> getFullSizes()
IfGET_SIZESisTRUE, an array containing the number of records of each corresponding table intableNames(same values assizes). Otherwise, an empty array.- Returns:
- The current value of
fullSizes.
-
setFullSizes
public ShowTableResponse setFullSizes(List<Long> fullSizes)
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
public List<Double> 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 of
joinSizes.
-
setJoinSizes
public ShowTableResponse 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. 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.
-
getTotalSize
public long getTotalSize()
- Returns:
- The current value of
totalSize.
-
setTotalSize
public ShowTableResponse setTotalSize(long totalSize)
- Parameters:
totalSize- The new value fortotalSize.- Returns:
thisto mimic the builder pattern.
-
getTotalFullSize
public long getTotalFullSize()
IfGET_SIZESisTRUE, the sum of the elements offullSizes(same value astotalSize). Otherwise, -1.- Returns:
- The current value of
totalFullSize.
-
setTotalFullSize
public ShowTableResponse setTotalFullSize(long totalFullSize)
IfGET_SIZESisTRUE, the sum of the elements offullSizes(same value astotalSize). Otherwise, -1.- Parameters:
totalFullSize- The new value fortotalFullSize.- Returns:
thisto mimic the builder pattern.
-
getInfo
public Map<String,String> getInfo()
Additional information.- Returns:
- The current value of
info.
-
setInfo
public ShowTableResponse setInfo(Map<String,String> info)
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.GenericContainer- Returns:
- The schema object describing this class.
-
get
public Object get(int index)
This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to get- Returns:
- value of the field with the given index.
- Throws:
IndexOutOfBoundsException
-
put
public void put(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to setvalue- the value to set- Throws:
IndexOutOfBoundsException
-
-