public class CassandraMetadata extends Object implements ConnectorMetadata
| Constructor and Description |
|---|
CassandraMetadata(CassandraConnectorId connectorId,
CassandraSession cassandraSession,
CassandraPartitionManager partitionManager,
com.facebook.airlift.json.JsonCodec<List<ExtraColumnMetadata>> extraColumnMetadataCodec,
CassandraClientConfig config) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddColumn, beginDelete, beginQuery, beginStatisticsCollection, cleanupQuery, commitPageSinkAsync, commitPageSinkAsync, createMaterializedView, createRole, createSchema, createTemporaryTable, createView, doMetadataUpdateCleanup, dropColumn, dropMaterializedView, dropRole, dropSchema, dropView, finishDelete, finishStatisticsCollection, getAlternativeLayoutHandle, getCommonPartitioningHandle, getInfo, getInsertLayout, getMaterializedView, getMetadataUpdateResults, getNewTableLayout, getPartitioningHandleForExchange, getPreferredShuffleLayoutForInsert, getPreferredShuffleLayoutForNewTable, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableHandleForStatisticsCollection, getTableLayoutFilterCoverage, getTableStatistics, getUpdateRowIdColumnHandle, getViews, grantRoles, grantTablePrivileges, isLegacyGetLayoutSupported, isRefinedPartitioningOver, listApplicableRoles, listEnabledRoles, listRoleGrants, listRoles, listTablePrivileges, listTables, listViews, listViews, metadataDelete, renameColumn, renameSchema, resolveIndex, revokeRoles, revokeTablePrivileges, schemaExists, supportsMetadataDelete, toExplainIOConstraints@Inject public CassandraMetadata(CassandraConnectorId connectorId, CassandraSession cassandraSession, CassandraPartitionManager partitionManager, com.facebook.airlift.json.JsonCodec<List<ExtraColumnMetadata>> extraColumnMetadataCodec, CassandraClientConfig config)
public List<String> listSchemaNames(ConnectorSession session)
listSchemaNames in interface ConnectorMetadatapublic CassandraTableHandle getTableHandle(ConnectorSession session, SchemaTableName tableName)
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 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 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 void createTable(ConnectorSession session, ConnectorTableMetadata tableMetadata, boolean ignoreExisting)
createTable 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 ConnectorOutputTableHandle 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 ConnectorInsertTableHandle 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 ConnectorMetadataCopyright © 2012–2021. All rights reserved.