public class InformationSchemaMetadata extends Object implements ConnectorMetadata
| Modifier and Type | Field and Description |
|---|---|
static String |
INFORMATION_SCHEMA |
static SchemaTableName |
TABLE_APPLICABLE_ROLES |
static SchemaTableName |
TABLE_COLUMNS |
static SchemaTableName |
TABLE_ENABLED_ROLES |
static SchemaTableName |
TABLE_ROLES |
static SchemaTableName |
TABLE_SCHEMATA |
static SchemaTableName |
TABLE_TABLE_PRIVILEGES |
static SchemaTableName |
TABLE_TABLES |
static SchemaTableName |
TABLE_VIEWS |
static Map<SchemaTableName,ConnectorTableMetadata> |
TABLES |
| Constructor and Description |
|---|
InformationSchemaMetadata(String catalogName,
Metadata metadata) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddColumn, applyLimit, applySample, beginCreateTable, beginDelete, beginInsert, beginQuery, beginStatisticsCollection, cleanupQuery, createRole, createSchema, createTable, createView, dropColumn, dropRole, dropSchema, dropTable, dropView, finishCreateTable, finishDelete, finishInsert, finishStatisticsCollection, getCommonPartitioningHandle, getInfo, getInfo, getInsertLayout, getNewTableLayout, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableHandleForStatisticsCollection, getTableLayouts, getTableStatistics, getUpdateRowIdColumnHandle, getViews, grantRoles, grantTablePrivileges, listApplicableRoles, listEnabledRoles, listRoleGrants, listRoles, listTablePrivileges, listViews, makeCompatiblePartitioning, metadataDelete, renameColumn, renameSchema, renameTable, resolveIndex, revokeRoles, revokeTablePrivileges, schemaExists, setTableComment, supportsMetadataDeletepublic static final String INFORMATION_SCHEMA
public static final SchemaTableName TABLE_COLUMNS
public static final SchemaTableName TABLE_TABLES
public static final SchemaTableName TABLE_VIEWS
public static final SchemaTableName TABLE_SCHEMATA
public static final SchemaTableName TABLE_TABLE_PRIVILEGES
public static final SchemaTableName TABLE_ROLES
public static final SchemaTableName TABLE_APPLICABLE_ROLES
public static final SchemaTableName TABLE_ENABLED_ROLES
public static final Map<SchemaTableName,ConnectorTableMetadata> TABLES
public List<String> listSchemaNames(ConnectorSession session)
listSchemaNames in interface ConnectorMetadatapublic ConnectorTableHandle getTableHandle(ConnectorSession connectorSession, SchemaTableName tableName)
getTableHandle in interface ConnectorMetadatapublic ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle)
getTableMetadata in interface ConnectorMetadatapublic List<SchemaTableName> listTables(ConnectorSession session, Optional<String> schemaName)
listTables in interface ConnectorMetadatapublic ColumnMetadata getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle)
getColumnMetadata in interface ConnectorMetadatapublic Map<String,ColumnHandle> getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle)
getColumnHandles in interface ConnectorMetadatapublic Map<SchemaTableName,List<ColumnMetadata>> listTableColumns(ConnectorSession session, SchemaTablePrefix prefix)
listTableColumns in interface ConnectorMetadatapublic boolean usesLegacyTableLayouts()
usesLegacyTableLayouts in interface ConnectorMetadatapublic ConnectorTableProperties getTableProperties(ConnectorSession session, ConnectorTableHandle table)
getTableProperties in interface ConnectorMetadatapublic Optional<ConstraintApplicationResult<ConnectorTableHandle>> applyFilter(ConnectorSession session, ConnectorTableHandle handle, Constraint constraint)
applyFilter in interface ConnectorMetadatapublic Set<QualifiedTablePrefix> calculatePrefixesWithTableName(ConnectorSession connectorSession, Set<QualifiedTablePrefix> prefixes, TupleDomain<ColumnHandle> constraint, Optional<Predicate<Map<ColumnHandle,NullableValue>>> predicate)
public ConnectorTableLayout getTableLayout(ConnectorSession session, ConnectorTableLayoutHandle handle)
getTableLayout in interface ConnectorMetadataCopyright © 2012–2019. All rights reserved.