public interface TableMetadata
To create a TableMetadata object, call
GridMetadata.getTableMetadata.
This interface is implemented internally. Applications do not implement this interface.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getColumnNames()
Get the array of column name strings from the table metadata object.
|
ColumnType |
getColumnType(java.lang.String columnName)
Get the column type from the table metadata object
for a particular column name.
|
long |
getDefaultTTL()
Get the default TTL for rows in the table from the table metadata object.
|
java.lang.String[] |
getIndexColumnNames(java.lang.String indexName)
Get the array of column name strings used when a particular index was created.
|
java.lang.String[] |
getIndexNames()
Get the array of index name strings from the table metadata object.
|
java.lang.String |
getName()
Get the name of the table from the table metadata object.
|
java.lang.String |
getPrimaryIndexName()
Get the primary index name of the table from the table metadata object.
|
java.lang.String getName()
throws DataGridException
DataGridException - in case of failureslong getDefaultTTL()
throws DataGridException
If the default TTL is zero, that means rows never expire.
DataGridException - in case of failuresjava.lang.String[] getColumnNames()
throws DataGridException
DataGridException - in case of failuresColumnType getColumnType(java.lang.String columnName) throws DataGridException
columnName - The column name to get the column type.ColumnTypeDataGridException - in case of failuresjava.lang.String[] getIndexNames()
throws DataGridException
DataGridException - in case of failuresjava.lang.String[] getIndexColumnNames(java.lang.String indexName)
throws DataGridException
indexName - The name of the index to get the column names.DataGridException - in case of failuresjava.lang.String getPrimaryIndexName()
throws DataGridException
DataGridException - in case of failures