use of com.facebook.presto.spi.ConnectorId in project presto by prestodb.
the class MetadataManager method dropColumn.
@Override
public void dropColumn(Session session, TableHandle tableHandle, ColumnHandle column) {
ConnectorId connectorId = tableHandle.getConnectorId();
ConnectorMetadata metadata = getMetadataForWrite(session, connectorId);
metadata.dropColumn(session.toConnectorSession(connectorId), tableHandle.getConnectorHandle(), column);
}
use of com.facebook.presto.spi.ConnectorId in project presto by prestodb.
the class MetadataManager method supportsMetadataDelete.
@Override
public boolean supportsMetadataDelete(Session session, TableHandle tableHandle) {
ConnectorId connectorId = tableHandle.getConnectorId();
ConnectorMetadata metadata = getMetadata(session, connectorId);
return metadata.supportsMetadataDelete(session.toConnectorSession(connectorId), tableHandle.getConnectorHandle(), tableHandle.getLayout());
}
use of com.facebook.presto.spi.ConnectorId in project presto by prestodb.
the class MetadataManager method addColumn.
@Override
public void addColumn(Session session, TableHandle tableHandle, ColumnMetadata column) {
ConnectorId connectorId = tableHandle.getConnectorId();
ConnectorMetadata metadata = getMetadataForWrite(session, connectorId);
metadata.addColumn(session.toConnectorSession(connectorId), tableHandle.getConnectorHandle(), column);
}
use of com.facebook.presto.spi.ConnectorId in project presto by prestodb.
the class MetadataManager method getUpdateRowIdColumnHandle.
@Override
public ColumnHandle getUpdateRowIdColumnHandle(Session session, TableHandle tableHandle) {
ConnectorId connectorId = tableHandle.getConnectorId();
ConnectorMetadata metadata = getMetadata(session, connectorId);
return metadata.getUpdateRowIdColumnHandle(session.toConnectorSession(connectorId), tableHandle.getConnectorHandle());
}
use of com.facebook.presto.spi.ConnectorId in project presto by prestodb.
the class MetadataManager method dropMaterializedView.
@Override
public void dropMaterializedView(Session session, QualifiedObjectName viewName) {
CatalogMetadata catalogMetadata = getCatalogMetadataForWrite(session, viewName.getCatalogName());
ConnectorId connectorId = catalogMetadata.getConnectorId();
ConnectorMetadata metadata = catalogMetadata.getMetadata();
metadata.dropMaterializedView(session.toConnectorSession(connectorId), toSchemaTableName(viewName));
}
Aggregations