public class ShowTableResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.showTable
.Modifier and Type | Class and Description |
---|---|
static class |
ShowTableResponse.AdditionalInfo
A set of string constants for the
ShowTableResponse parameter
additionalInfo . |
static class |
ShowTableResponse.TableDescriptions
A set of string constants for the
ShowTableResponse parameter
tableDescriptions . |
Constructor and Description |
---|
ShowTableResponse()
Constructs a ShowTableResponse object with default parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(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 in
tableNames . |
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
List<Long> |
getFullSizes()
If
GET_SIZES is TRUE , an array containing the number of records of each corresponding
table in tableNames (same values as sizes ). |
Map<String,String> |
getInfo()
Additional information.
|
List<Double> |
getJoinSizes()
If
GET_SIZES is TRUE , an array containing the number of unfiltered records in the cross
product of the sub-tables of each corresponding join-table in tableNames . |
List<Map<String,List<String>>> |
getProperties()
Property maps of the respective tables in
tableNames . |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
List<Long> |
getSizes()
If
GET_SIZES is TRUE , an array containing the number of records of each corresponding
table in tableNames . |
List<List<String>> |
getTableDescriptions()
List of descriptions for the respective tables in
tableNames . |
String |
getTableName()
Value of
tableName . |
List<String> |
getTableNames()
|
long |
getTotalFullSize()
|
long |
getTotalSize()
|
List<String> |
getTypeIds()
Type ids of the respective tables in
tableNames . |
List<String> |
getTypeLabels()
Type labels of the respective tables in
tableNames . |
List<String> |
getTypeSchemas()
Type schemas of the respective tables in
tableNames . |
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
ShowTableResponse |
setAdditionalInfo(List<Map<String,String>> additionalInfo)
Additional information about the respective tables in
tableNames . |
ShowTableResponse |
setFullSizes(List<Long> fullSizes)
If
GET_SIZES is TRUE , an array containing the number of records of each corresponding
table in tableNames (same values as sizes ). |
ShowTableResponse |
setInfo(Map<String,String> info)
Additional information.
|
ShowTableResponse |
setJoinSizes(List<Double> joinSizes)
If
GET_SIZES is TRUE , an array containing the number of unfiltered records in the cross
product of the sub-tables of each corresponding join-table in tableNames . |
ShowTableResponse |
setProperties(List<Map<String,List<String>>> properties)
Property maps of the respective tables in
tableNames . |
ShowTableResponse |
setSizes(List<Long> sizes)
If
GET_SIZES is TRUE , an array containing the number of records of each corresponding
table in tableNames . |
ShowTableResponse |
setTableDescriptions(List<List<String>> tableDescriptions)
List of descriptions for the respective tables in
tableNames . |
ShowTableResponse |
setTableName(String tableName)
Value of
tableName . |
ShowTableResponse |
setTableNames(List<String> tableNames)
|
ShowTableResponse |
setTotalFullSize(long totalFullSize)
|
ShowTableResponse |
setTotalSize(long totalSize)
|
ShowTableResponse |
setTypeIds(List<String> typeIds)
Type ids of the respective tables in
tableNames . |
ShowTableResponse |
setTypeLabels(List<String> typeLabels)
Type labels of the respective tables in
tableNames . |
ShowTableResponse |
setTypeSchemas(List<String> typeSchemas)
Type schemas of the respective tables in
tableNames . |
String |
toString() |
public ShowTableResponse()
public static org.apache.avro.Schema getClassSchema()
public String getTableName()
tableName
.tableName
.public ShowTableResponse setTableName(String tableName)
tableName
.tableName
- The new value for tableName
.this
to mimic the builder pattern.public List<String> getTableNames()
tableName
is a table or view, then the single element of the array is tableName
. If tableName
is a
schema and SHOW_CHILDREN
is set to TRUE
,
then this array is populated with the names of all tables and views in
the given schema; if SHOW_CHILDREN
is FALSE
, then
this array will only include the schema name itself. If tableName
is an
empty string, then the array contains the names of all tables in the
user's default schema.tableNames
.public ShowTableResponse setTableNames(List<String> tableNames)
tableName
is a table or view, then the single element of the array is tableName
. If tableName
is a
schema and SHOW_CHILDREN
is set to TRUE
,
then this array is populated with the names of all tables and views in
the given schema; if SHOW_CHILDREN
is FALSE
, then
this array will only include the schema name itself. If tableName
is an
empty string, then the array contains the names of all tables in the
user's default schema.tableNames
- The new value for tableNames
.this
to mimic the builder pattern.public List<List<String>> getTableDescriptions()
tableNames
.
Supported values:
tableDescriptions
.public ShowTableResponse setTableDescriptions(List<List<String>> tableDescriptions)
tableNames
.
Supported values:
tableDescriptions
- The new value for tableDescriptions
.this
to mimic the builder pattern.public List<String> getTypeIds()
tableNames
.typeIds
.public ShowTableResponse setTypeIds(List<String> typeIds)
tableNames
.typeIds
- The new value for typeIds
.this
to mimic the builder pattern.public List<String> getTypeSchemas()
tableNames
.typeSchemas
.public ShowTableResponse setTypeSchemas(List<String> typeSchemas)
tableNames
.typeSchemas
- The new value for typeSchemas
.this
to mimic the builder pattern.public List<String> getTypeLabels()
tableNames
.typeLabels
.public ShowTableResponse setTypeLabels(List<String> typeLabels)
tableNames
.typeLabels
- The new value for typeLabels
.this
to mimic the builder pattern.public List<Map<String,List<String>>> getProperties()
tableNames
.properties
.public ShowTableResponse setProperties(List<Map<String,List<String>>> properties)
tableNames
.properties
- The new value for properties
.this
to mimic the builder pattern.public List<Map<String,String>> getAdditionalInfo()
tableNames
.
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 ''.
COMPRESSED_COLUMNS
: No
longer supported. The default value is ''.
COLUMN_INFO
: JSON-encoded
string representing a map of column name to information
including memory usage if the GET_COLUMN_INFO
option is TRUE
. 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 current
intial 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 a datatime 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 ''.
additionalInfo
.public ShowTableResponse setAdditionalInfo(List<Map<String,String>> additionalInfo)
tableNames
.
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 ''.
COMPRESSED_COLUMNS
: No
longer supported. The default value is ''.
COLUMN_INFO
: JSON-encoded
string representing a map of column name to information
including memory usage if the GET_COLUMN_INFO
option is TRUE
. 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 current
intial 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 a datatime 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 ''.
additionalInfo
- The new value for additionalInfo
.this
to mimic the builder pattern.public List<Long> getSizes()
GET_SIZES
is TRUE
, an array containing the number of records of each corresponding
table in tableNames
. Otherwise, an empty
array.sizes
.public ShowTableResponse setSizes(List<Long> sizes)
GET_SIZES
is TRUE
, an array containing the number of records of each corresponding
table in tableNames
. Otherwise, an empty
array.sizes
- The new value for sizes
.this
to mimic the builder pattern.public List<Long> getFullSizes()
GET_SIZES
is TRUE
, an array containing the number of records of each corresponding
table in tableNames
(same values as sizes
). Otherwise, an empty array.fullSizes
.public ShowTableResponse setFullSizes(List<Long> fullSizes)
GET_SIZES
is TRUE
, an array containing the number of records of each corresponding
table in tableNames
(same values as sizes
). Otherwise, an empty array.fullSizes
- The new value for fullSizes
.this
to mimic the builder pattern.public List<Double> getJoinSizes()
GET_SIZES
is TRUE
, an array containing the number of unfiltered records in the cross
product of the sub-tables of each corresponding join-table in tableNames
. For simple tables, this number will be the
same as sizes
. 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, (if GET_SIZES
is
FALSE
), an
empty array.joinSizes
.public ShowTableResponse setJoinSizes(List<Double> joinSizes)
GET_SIZES
is TRUE
, an array containing the number of unfiltered records in the cross
product of the sub-tables of each corresponding join-table in tableNames
. For simple tables, this number will be the
same as sizes
. 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, (if GET_SIZES
is
FALSE
), an
empty array.joinSizes
- The new value for joinSizes
.this
to mimic the builder pattern.public long getTotalSize()
totalSize
.public ShowTableResponse setTotalSize(long totalSize)
totalSize
- The new value for totalSize
.this
to mimic the builder pattern.public long getTotalFullSize()
GET_SIZES
is TRUE
, the sum of the elements of fullSizes
(same value as totalSize
). Otherwise, -1.totalFullSize
.public ShowTableResponse setTotalFullSize(long totalFullSize)
GET_SIZES
is TRUE
, the sum of the elements of fullSizes
(same value as totalSize
). Otherwise, -1.totalFullSize
- The new value for totalFullSize
.this
to mimic the builder pattern.public Map<String,String> getInfo()
info
.public ShowTableResponse setInfo(Map<String,String> info)
info
- The new value for info
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2025. All rights reserved.