use of io.prestosql.spi.connector.CatalogName in project hetu-core by openlookeng.
the class MetadataManager method dropView.
@Override
public void dropView(Session session, QualifiedObjectName viewName) {
CatalogMetadata catalogMetadata = getCatalogMetadataForWrite(session, viewName.getCatalogName());
CatalogName catalogName = catalogMetadata.getCatalogName();
ConnectorMetadata metadata = catalogMetadata.getMetadata();
metadata.dropView(session.toConnectorSession(catalogName), toSchemaTableName(viewName));
}
use of io.prestosql.spi.connector.CatalogName in project hetu-core by openlookeng.
the class MetadataManager method getUpdateRowIdColumnHandle.
@Override
public ColumnHandle getUpdateRowIdColumnHandle(Session session, TableHandle tableHandle, List<ColumnHandle> updatedColumns) {
CatalogName catalogName = tableHandle.getCatalogName();
ConnectorMetadata metadata = getMetadata(session, catalogName);
return metadata.getUpdateRowIdColumnHandle(session.toConnectorSession(catalogName), tableHandle.getConnectorHandle(), updatedColumns);
}
use of io.prestosql.spi.connector.CatalogName in project hetu-core by openlookeng.
the class MetadataManager method listEnabledRoles.
@Override
public Set<String> listEnabledRoles(Session session, String catalog) {
Optional<CatalogMetadata> catalogMetadata = getOptionalCatalogMetadata(session, catalog);
if (!catalogMetadata.isPresent()) {
return ImmutableSet.of();
}
CatalogName catalogName = catalogMetadata.get().getCatalogName();
ConnectorSession connectorSession = session.toConnectorSession(catalogName);
ConnectorMetadata metadata = catalogMetadata.get().getMetadataFor(catalogName);
return ImmutableSet.copyOf(metadata.listEnabledRoles(connectorSession));
}
use of io.prestosql.spi.connector.CatalogName in project hetu-core by openlookeng.
the class MetadataManager method validateAndGetSortAggregationType.
@Override
public PartialAndFinalAggregationType validateAndGetSortAggregationType(Session session, TableHandle tableHandle, List<String> keyNames) {
CatalogName catalogName = tableHandle.getCatalogName();
ConnectorMetadata metadata = getMetadata(session, catalogName);
return metadata.validateAndGetSortAggregationType(session.toConnectorSession(catalogName), tableHandle.getConnectorHandle(), keyNames);
}
use of io.prestosql.spi.connector.CatalogName in project hetu-core by openlookeng.
the class MetadataManager method dropRole.
@Override
public void dropRole(Session session, String role, String catalog) {
CatalogMetadata catalogMetadata = getCatalogMetadataForWrite(session, catalog);
CatalogName catalogName = catalogMetadata.getCatalogName();
ConnectorMetadata metadata = catalogMetadata.getMetadata();
metadata.dropRole(session.toConnectorSession(catalogName), role);
}
Aggregations