presto-thrift/src/main/java/io/prestosql/plugin/thrift/ThriftIndexProvider.java/ThriftIndexProvider/ThriftIndexProvider
class ThriftIndexProvider:    @Inject
    public ThriftIndexProvider(DriftClient<PrestoThriftService> client, ThriftHeaderProvider thriftHeaderProvider, ThriftConnectorStats stats, ThriftConnectorConfig config)
    {
        this.client = requireNonNull(client, "client is null");
        this.thriftHeaderProvider = requireNonNull(thriftHeaderProvider, "thriftHeaderProvider is null");
        this.stats = requireNonNull(stats, "stats is null");
        requireNonNull(config, "config is null");
        this.maxBytesPerResponse = config.getMaxResponseSize().toBytes();
        this.lookupRequestsConcurrency = config.getLookupRequestsConcurrency();
    }