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