@ThreadSafe public class MemoryMetadata extends Object implements ConnectorMetadata
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMA_NAME |
| Constructor and Description |
|---|
MemoryMetadata(NodeManager nodeManager,
MemoryConnectorId connectorId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddColumn, beginDelete, beginQuery, beginStatisticsCollection, cleanupQuery, commitPageSinkAsync, commitPageSinkAsync, createMaterializedView, createRole, createTemporaryTable, doMetadataUpdateCleanup, dropColumn, dropMaterializedView, dropRole, finishDelete, finishStatisticsCollection, getAlternativeLayoutHandle, getCommonPartitioningHandle, getInfo, getInsertLayout, getMaterializedView, getMetadataUpdateResults, getNewTableLayout, getPartitioningHandleForExchange, getPreferredShuffleLayoutForInsert, getPreferredShuffleLayoutForNewTable, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableHandleForStatisticsCollection, getTableLayoutFilterCoverage, getTableStatistics, getUpdateRowIdColumnHandle, grantRoles, grantTablePrivileges, isLegacyGetLayoutSupported, isRefinedPartitioningOver, listApplicableRoles, listEnabledRoles, listRoleGrants, listRoles, listTablePrivileges, listTables, listViews, metadataDelete, renameColumn, renameSchema, resolveIndex, revokeRoles, revokeTablePrivileges, schemaExists, supportsMetadataDelete, toExplainIOConstraintspublic static final String SCHEMA_NAME
@Inject public MemoryMetadata(NodeManager nodeManager, MemoryConnectorId connectorId)
public List<String> listSchemaNames(ConnectorSession session)
listSchemaNames in interface ConnectorMetadatapublic void createSchema(ConnectorSession session, String schemaName, Map<String,Object> properties)
createSchema in interface ConnectorMetadatapublic void dropSchema(ConnectorSession session, String schemaName)
dropSchema in interface ConnectorMetadatapublic ConnectorTableHandle getTableHandle(ConnectorSession session, SchemaTableName schemaTableName)
getTableHandle in interface ConnectorMetadatapublic ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle)
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 ColumnMetadata getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle)
getColumnMetadata in interface ConnectorMetadatapublic Map<SchemaTableName,List<ColumnMetadata>> listTableColumns(ConnectorSession session, SchemaTablePrefix prefix)
listTableColumns in interface ConnectorMetadatapublic void dropTable(ConnectorSession session, ConnectorTableHandle tableHandle)
dropTable in interface ConnectorMetadatapublic void renameTable(ConnectorSession session, ConnectorTableHandle tableHandle, SchemaTableName newTableName)
renameTable in interface ConnectorMetadatapublic void createTable(ConnectorSession session, ConnectorTableMetadata tableMetadata, boolean ignoreExisting)
createTable in interface ConnectorMetadatapublic MemoryOutputTableHandle beginCreateTable(ConnectorSession session, ConnectorTableMetadata tableMetadata, Optional<ConnectorNewTableLayout> layout)
beginCreateTable in interface ConnectorMetadatapublic Optional<ConnectorOutputMetadata> finishCreateTable(ConnectorSession session, ConnectorOutputTableHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics)
finishCreateTable in interface ConnectorMetadatapublic MemoryInsertTableHandle beginInsert(ConnectorSession session, ConnectorTableHandle tableHandle)
beginInsert in interface ConnectorMetadatapublic Optional<ConnectorOutputMetadata> finishInsert(ConnectorSession session, ConnectorInsertTableHandle insertHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics)
finishInsert in interface ConnectorMetadatapublic void createView(ConnectorSession session, ConnectorTableMetadata viewMetadata, String viewData, boolean replace)
createView in interface ConnectorMetadatapublic void dropView(ConnectorSession session, SchemaTableName viewName)
dropView in interface ConnectorMetadatapublic List<SchemaTableName> listViews(ConnectorSession session, String schemaNameOrNull)
listViews in interface ConnectorMetadatapublic Map<SchemaTableName,ConnectorViewDefinition> getViews(ConnectorSession session, SchemaTablePrefix prefix)
getViews in interface ConnectorMetadatapublic List<ConnectorTableLayoutResult> getTableLayouts(ConnectorSession session, ConnectorTableHandle handle, Constraint<ColumnHandle> constraint, Optional<Set<ColumnHandle>> desiredColumns)
getTableLayouts in interface ConnectorMetadatapublic ConnectorTableLayout getTableLayout(ConnectorSession session, ConnectorTableLayoutHandle handle)
getTableLayout in interface ConnectorMetadataCopyright © 2012–2021. All rights reserved.