public class JdbcMetadata extends Object implements ConnectorMetadata
| Constructor and Description |
|---|
JdbcMetadata(JdbcClient jdbcClient,
boolean allowDropTable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginDelete, beginQuery, beginStatisticsCollection, cleanupQuery, createRole, createSchema, createTemporaryTable, createView, dropRole, dropSchema, dropView, finishDelete, finishStatisticsCollection, getAlternativeLayoutHandle, getCommonPartitioningHandle, getInfo, getInsertLayout, getNewTableLayout, getPartitioningHandleForExchange, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableHandleForStatisticsCollection, getUpdateRowIdColumnHandle, getViews, grantRoles, grantTablePrivileges, isRefinedPartitioningOver, listApplicableRoles, listEnabledRoles, listRoleGrants, listRoles, listTablePrivileges, listTables, listViews, listViews, metadataDelete, renameSchema, resolveIndex, revokeRoles, revokeTablePrivileges, supportsMetadataDeletepublic JdbcMetadata(JdbcClient jdbcClient, boolean allowDropTable)
public boolean schemaExists(ConnectorSession session, String schemaName)
schemaExists in interface ConnectorMetadatapublic List<String> listSchemaNames(ConnectorSession session)
listSchemaNames in interface ConnectorMetadatapublic JdbcTableHandle getTableHandle(ConnectorSession session, SchemaTableName tableName)
getTableHandle in interface ConnectorMetadatapublic List<ConnectorTableLayoutResult> getTableLayouts(ConnectorSession session, ConnectorTableHandle table, Constraint<ColumnHandle> constraint, Optional<Set<ColumnHandle>> desiredColumns)
getTableLayouts in interface ConnectorMetadatapublic ConnectorTableLayout getTableLayout(ConnectorSession session, ConnectorTableLayoutHandle handle)
getTableLayout in interface ConnectorMetadatapublic ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle table)
getTableMetadata in interface ConnectorMetadatapublic List<SchemaTableName> listTables(ConnectorSession session, String schemaNameOrNull)
listTables 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 ColumnMetadata getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle)
getColumnMetadata in interface ConnectorMetadatapublic void dropTable(ConnectorSession session, ConnectorTableHandle tableHandle)
dropTable in interface ConnectorMetadatapublic ConnectorOutputTableHandle beginCreateTable(ConnectorSession session, ConnectorTableMetadata tableMetadata, Optional<ConnectorNewTableLayout> layout)
beginCreateTable in interface ConnectorMetadatapublic void createTable(ConnectorSession session, ConnectorTableMetadata tableMetadata, boolean ignoreExisting)
createTable in interface ConnectorMetadatapublic Optional<ConnectorOutputMetadata> finishCreateTable(ConnectorSession session, ConnectorOutputTableHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics)
finishCreateTable in interface ConnectorMetadatapublic void rollback()
public ConnectorInsertTableHandle beginInsert(ConnectorSession session, ConnectorTableHandle tableHandle)
beginInsert in interface ConnectorMetadatapublic Optional<ConnectorOutputMetadata> finishInsert(ConnectorSession session, ConnectorInsertTableHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics)
finishInsert in interface ConnectorMetadatapublic void addColumn(ConnectorSession session, ConnectorTableHandle table, ColumnMetadata columnMetadata)
addColumn in interface ConnectorMetadatapublic void dropColumn(ConnectorSession session, ConnectorTableHandle table, ColumnHandle column)
dropColumn in interface ConnectorMetadatapublic void renameColumn(ConnectorSession session, ConnectorTableHandle table, ColumnHandle column, String target)
renameColumn in interface ConnectorMetadatapublic void renameTable(ConnectorSession session, ConnectorTableHandle table, SchemaTableName newTableName)
renameTable in interface ConnectorMetadatapublic TableStatistics getTableStatistics(ConnectorSession session, ConnectorTableHandle tableHandle, Constraint<ColumnHandle> constraint)
getTableStatistics in interface ConnectorMetadataCopyright © 2012–2019. All rights reserved.