Additional top-level class in compilation unit: ConglomInfo.
SELECT * FROM TABLE(SYSCS_DIAG.SPACE_TABLE('MYSCHEMA', 'MYTABLE')) T;
If the schema name is not supplied, the default schema is used.
SELECT * FROM TABLE(SYSCS_DIAG.SPACE_TABLE('MYTABLE')) T; Note
Both the schema name and the table name must be any expression that evaluates to a string data type. If you created a schema or table name as a non-delimited identifier, you must present their names in all upper case.
The SpaceTable virtual table can be used to estimate whether space might be saved by compressing a table and its indexes.
The SpaceTable virtual table has the following columns:
To get space information on all schemas and tables, use a query such as
select v.*
from SYS.SYSSCHEMAS s,
SYS.SYSTABLES t,
TABLE(SYSCS_DIAG.SPACE_TABLE(SCHEMANAME, TABLENAME)) v
where s.SCHEMAID = t.SCHEMAID;
| Modifier and Type | Field and Description |
|---|---|
| private static final ResultColumnDescriptor[] | |
| private ConglomInfo[] | |
| pack-priv int | |
| pack-priv boolean | |
| private static final ResultSetMetaData | |
| private String | |
| private SpaceInfo | |
| private String | |
| private TransactionController | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Releases this |
| private void | |
| public double | getEstimatedCostPerInstantiation(VTIEnvironment
The state variable for optimizing the Table Function. vtiEnvironment)Implements org. Get the estimated cost for a single instantiation of a Table Function. |
| public double | getEstimatedRowCount(VTIEnvironment
The state variable for optimizing the Table Function. vtiEnvironment)Implements org. Get the estimated row count for a single scan of a Table Function. |
| public int | getInt(int
the first column is 1, the second is 2, ... columnNumber)Overrides org. Implements java. Retrieves the value of the designated column in the current row
of this |
| public long | getLong(int
the first column is 1, the second is 2, ... columnNumber)Overrides org. Implements java. Retrieves the value of the designated column in the current row
of this |
| public ResultSetMetaData | getMetaData()
Overrides org. Implements java. Retrieves the number, types and properties of
this |
| public short | getShort(int
the first column is 1, the second is 2, ... columnNumber)Overrides org. Implements java. Retrieves the value of the designated column in the current row
of this |
| private void | |
| public String | getString(int
the first column is 1, the second is 2, ... columnNumber)Overrides org. Implements java. Retrieves the value of the designated column in the current row
of this |
| public boolean | next()
Implements java. Moves the cursor forward one row from its current position. |
| public boolean | Returns: trueThe state variable for optimizing the Table Function. vtiEnvironment)Implements org. Find out if the ResultSet of the Table Function can be instantiated multiple times. |
| public boolean | wasNull()
Overrides org. Implements java. Reports whether
the last column read had a value of SQL |
| columnInfo | back to summary |
|---|---|
| private static final ResultColumnDescriptor[] columnInfo | |
| conglomTable | back to summary |
|---|---|
| private ConglomInfo[] conglomTable | |
| currentRow | back to summary |
|---|---|
| pack-priv int currentRow | |
| initialized | back to summary |
|---|---|
| pack-priv boolean initialized | |
| metadata | back to summary |
|---|---|
| private static final ResultSetMetaData metadata | |
| schemaName | back to summary |
|---|---|
| private String schemaName | |
| spaceInfo | back to summary |
|---|---|
| private SpaceInfo spaceInfo | |
| tableName | back to summary |
|---|---|
| private String tableName | |
| tc | back to summary |
|---|---|
| private TransactionController tc | |
| wasNull | back to summary |
|---|---|
| private boolean wasNull | |
| SpaceTable | back to summary |
|---|---|
| public SpaceTable() | |
| SpaceTable | back to summary |
|---|---|
| public SpaceTable(String schemaName, String tableName) | |
| SpaceTable | back to summary |
|---|---|
| public SpaceTable(String tableName) | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Releases this The closing of a
When a Note A
Calling the method
| |
| getConglomInfo | back to summary |
|---|---|
| private void getConglomInfo(LanguageConnectionContext lcc) throws StandardException | |
| getEstimatedCostPerInstantiation | back to summary |
|---|---|
| public double getEstimatedCostPerInstantiation(VTIEnvironment vtiEnvironment) Implements org. Doc from org. Get the estimated cost for a single instantiation of a Table Function.
| |
| getEstimatedRowCount | back to summary |
|---|---|
| public double getEstimatedRowCount(VTIEnvironment vtiEnvironment) Implements org. Doc from org. Get the estimated row count for a single scan of a Table Function.
| |
| getInt | back to summary |
|---|---|
| public int getInt(int columnNumber) Overrides org. Implements java. Doc from java. Retrieves the value of the designated column in the current row
of this
| |
| getLong | back to summary |
|---|---|
| public long getLong(int columnNumber) Overrides org. Implements java. Doc from java. Retrieves the value of the designated column in the current row
of this
| |
| getMetaData | back to summary |
|---|---|
| public ResultSetMetaData getMetaData() Overrides org. Implements java. Doc from java. Retrieves the number, types and properties of
this
| |
| getShort | back to summary |
|---|---|
| public short getShort(int columnNumber) Overrides org. Implements java. Doc from java. Retrieves the value of the designated column in the current row
of this
| |
| getSpaceInfo | back to summary |
|---|---|
| private void getSpaceInfo(int index) throws StandardException | |
| getString | back to summary |
|---|---|
| public String getString(int columnNumber) Overrides org. Implements java. Doc from java. Retrieves the value of the designated column in the current row
of this
| |
| next | back to summary |
|---|---|
| public boolean next() throws SQLException Implements java. Doc from java. Moves the cursor forward one row from its current position.
A
When a call to the If an input stream is open for the current row, a call
to the method
| |
| supportsMultipleInstantiations | back to summary |
|---|---|
| public boolean supportsMultipleInstantiations(VTIEnvironment vtiEnvironment) Implements org. Doc from org. Find out if the ResultSet of the Table Function can be instantiated multiple times.
| |
| wasNull | back to summary |
|---|---|
| public boolean wasNull() Overrides org. Implements java. Doc from java. Reports whether
the last column read had a value of SQL
| |