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.
|
boolean |
canCreateSampledTables(ConnectorSession session)
Returns true if this catalog supports creation of sampled tables
|
void |
commitCreateTable(ConnectorOutputTableHandle tableHandle,
Collection<String> fragments)
Commit a table creation with data after the data is written.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnHandle, getColumnHandles, getColumnMetadata, getSampleWeightColumnHandle, getTableHandle, getTableMetadata, listSchemaNames, listTableColumns, listTablespublic final ConnectorTableHandle createTable(ConnectorSession session, ConnectorTableMetadata tableMetadata)
ConnectorMetadatacreateTable 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<String> fragments)
ConnectorMetadatacommitCreateTable in interface ConnectorMetadatapublic void createView(ConnectorSession session, SchemaTableName viewName, String viewData, boolean replace)
ConnectorMetadatacreateView in interface ConnectorMetadatapublic void dropView(ConnectorSession session, SchemaTableName viewName)
ConnectorMetadatadropView in interface ConnectorMetadatapublic List<SchemaTableName> listViews(ConnectorSession session, String schemaNameOrNull)
ConnectorMetadatalistViews in interface ConnectorMetadatapublic Map<SchemaTableName,String> getViews(ConnectorSession session, SchemaTablePrefix prefix)
ConnectorMetadatagetViews in interface ConnectorMetadataCopyright © 2012-2014. All Rights Reserved.