public abstract class ReadOnlyConnectorMetadata extends Object implements ConnectorMetadata
| Constructor and Description |
|---|
ReadOnlyConnectorMetadata() |
| Modifier and Type | Method and Description |
|---|---|
ConnectorOutputTableHandle |
beginCreateTable(ConnectorSession session,
ConnectorTableMetadata tableMetadata)
Begin the atomic creation of a table with data.
|
ConnectorInsertTableHandle |
beginInsert(ConnectorSession session,
ConnectorTableHandle tableHandle)
Begin insert query
|
boolean |
canCreateSampledTables(ConnectorSession session)
Returns true if this catalog supports creation of sampled tables
|
void |
commitCreateTable(ConnectorOutputTableHandle tableHandle,
Collection<io.airlift.slice.Slice> fragments)
Commit a table creation with data after the data is written.
|
void |
commitInsert(ConnectorInsertTableHandle insertHandle,
Collection<io.airlift.slice.Slice> fragments)
Commit insert query
|
ConnectorTableHandle |
createTable(ConnectorSession session,
ConnectorTableMetadata tableMetadata)
Creates a table using the specified table metadata.
|
void |
createView(ConnectorSession session,
SchemaTableName viewName,
String viewData,
boolean replace)
Create the specified view.
|
void |
dropTable(ConnectorTableHandle tableHandle)
Drops the specified table
|
void |
dropView(ConnectorSession session,
SchemaTableName viewName)
Drop the specified view.
|
Map<SchemaTableName,String> |
getViews(ConnectorSession session,
SchemaTablePrefix prefix)
Gets the view data for views that match the specified table prefix.
|
List<SchemaTableName> |
listViews(ConnectorSession session,
String schemaNameOrNull)
List view names, possibly filtered by schema.
|
void |
renameTable(ConnectorTableHandle tableHandle,
SchemaTableName newTableName)
Rename the specified table
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnHandles, getColumnMetadata, getSampleWeightColumnHandle, getTableHandle, getTableMetadata, listSchemaNames, listTableColumns, listTablespublic final ConnectorTableHandle createTable(ConnectorSession session, ConnectorTableMetadata tableMetadata)
ConnectorMetadatacreateTable in interface ConnectorMetadatapublic final void renameTable(ConnectorTableHandle tableHandle, SchemaTableName newTableName)
ConnectorMetadatarenameTable in interface ConnectorMetadatapublic final void dropTable(ConnectorTableHandle tableHandle)
ConnectorMetadatadropTable in interface ConnectorMetadatapublic final boolean canCreateSampledTables(ConnectorSession session)
ConnectorMetadatacanCreateSampledTables in interface ConnectorMetadatapublic final ConnectorOutputTableHandle beginCreateTable(ConnectorSession session, ConnectorTableMetadata tableMetadata)
ConnectorMetadatabeginCreateTable in interface ConnectorMetadatapublic final void commitCreateTable(ConnectorOutputTableHandle tableHandle, Collection<io.airlift.slice.Slice> fragments)
ConnectorMetadatacommitCreateTable in interface ConnectorMetadatapublic final ConnectorInsertTableHandle beginInsert(ConnectorSession session, ConnectorTableHandle tableHandle)
ConnectorMetadatabeginInsert in interface ConnectorMetadatapublic final void commitInsert(ConnectorInsertTableHandle insertHandle, Collection<io.airlift.slice.Slice> fragments)
ConnectorMetadatacommitInsert in interface ConnectorMetadatapublic final void createView(ConnectorSession session, SchemaTableName viewName, String viewData, boolean replace)
ConnectorMetadatacreateView in interface ConnectorMetadatapublic final void dropView(ConnectorSession session, SchemaTableName viewName)
ConnectorMetadatadropView in interface ConnectorMetadatapublic final List<SchemaTableName> listViews(ConnectorSession session, String schemaNameOrNull)
ConnectorMetadatalistViews in interface ConnectorMetadatapublic final Map<SchemaTableName,String> getViews(ConnectorSession session, SchemaTablePrefix prefix)
ConnectorMetadatagetViews in interface ConnectorMetadataCopyright © 2012-2015. All Rights Reserved.