use of io.trino.spi.connector.ConnectorIndexProvider in project trino by trinodb.
the class IndexManager method getProvider.
private ConnectorIndexProvider getProvider(IndexHandle handle) {
ConnectorIndexProvider result = providers.get(handle.getCatalogName());
checkArgument(result != null, "No index provider for connector '%s'", handle.getCatalogName());
return result;
}
use of io.trino.spi.connector.ConnectorIndexProvider in project trino by trinodb.
the class IndexManager method getIndex.
public ConnectorIndex getIndex(Session session, IndexHandle indexHandle, List<ColumnHandle> lookupSchema, List<ColumnHandle> outputSchema) {
ConnectorSession connectorSession = session.toConnectorSession(indexHandle.getCatalogName());
ConnectorIndexProvider provider = getProvider(indexHandle);
return provider.getIndex(indexHandle.getTransactionHandle(), connectorSession, indexHandle.getConnectorHandle(), lookupSchema, outputSchema);
}
Aggregations