public class SystemTablesMetadata extends Object implements ConnectorMetadata
Constructor and Description |
---|
SystemTablesMetadata(ConnectorId connectorId,
SystemTablesProvider tables) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addColumn, beginCreateTable, beginDelete, beginInsert, beginQuery, beginStatisticsCollection, cleanupQuery, createRole, createSchema, createTable, createView, dropColumn, dropRole, dropSchema, dropTable, dropView, finishCreateTable, finishDelete, finishInsert, finishStatisticsCollection, getAlternativeLayoutHandle, getCommonPartitioningHandle, getInfo, getInsertLayout, getNewTableLayout, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableHandleForStatisticsCollection, getTableStatistics, getUpdateRowIdColumnHandle, getViews, grantRoles, grantTablePrivileges, listApplicableRoles, listEnabledRoles, listRoleGrants, listRoles, listTablePrivileges, listViews, metadataDelete, renameColumn, renameSchema, renameTable, resolveIndex, revokeRoles, revokeTablePrivileges, schemaExists, supportsMetadataDelete
public SystemTablesMetadata(ConnectorId connectorId, SystemTablesProvider tables)
public List<String> listSchemaNames(ConnectorSession session)
listSchemaNames
in interface ConnectorMetadata
public ConnectorTableHandle getTableHandle(ConnectorSession session, SchemaTableName tableName)
getTableHandle
in interface ConnectorMetadata
public List<ConnectorTableLayoutResult> getTableLayouts(ConnectorSession session, ConnectorTableHandle table, Constraint<ColumnHandle> constraint, Optional<Set<ColumnHandle>> desiredColumns)
getTableLayouts
in interface ConnectorMetadata
public ConnectorTableLayout getTableLayout(ConnectorSession session, ConnectorTableLayoutHandle handle)
getTableLayout
in interface ConnectorMetadata
public ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle)
getTableMetadata
in interface ConnectorMetadata
public List<SchemaTableName> listTables(ConnectorSession session, Optional<String> schemaName)
listTables
in interface ConnectorMetadata
public ColumnMetadata getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle)
getColumnMetadata
in interface ConnectorMetadata
public Map<String,ColumnHandle> getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle)
getColumnHandles
in interface ConnectorMetadata
public Map<SchemaTableName,List<ColumnMetadata>> listTableColumns(ConnectorSession session, SchemaTablePrefix prefix)
listTableColumns
in interface ConnectorMetadata
Copyright © 2012–2019. All rights reserved.