use of io.airlift.drift.server.DriftService in project trino by trinodb.
the class ThriftQueryRunner method startThriftServers.
static List<DriftServer> startThriftServers(int thriftServers, boolean enableIndexJoin) {
List<DriftServer> servers = new ArrayList<>(thriftServers);
for (int i = 0; i < thriftServers; i++) {
ThriftTpchService service = enableIndexJoin ? new ThriftIndexedTpchService() : new ThriftTpchService();
DriftServer server = new DriftServer(new DriftNettyServerTransportFactory(new DriftNettyServerConfig()), CODEC_MANAGER, new NullMethodInvocationStatsFactory(), ImmutableSet.of(new DriftService(service)), ImmutableSet.of());
server.start();
servers.add(server);
}
return servers;
}
use of io.airlift.drift.server.DriftService in project hetu-core by openlookeng.
the class ThriftQueryRunner method startThriftServers.
private static List<DriftServer> startThriftServers(int thriftServers, boolean enableIndexJoin) {
List<DriftServer> servers = new ArrayList<>(thriftServers);
for (int i = 0; i < thriftServers; i++) {
ThriftTpchService service = enableIndexJoin ? new ThriftIndexedTpchService() : new ThriftTpchService();
DriftServer server = new DriftServer(new DriftNettyServerTransportFactory(new DriftNettyServerConfig()), CODEC_MANAGER, new NullMethodInvocationStatsFactory(), ImmutableSet.of(new DriftService(service)), ImmutableSet.of());
server.start();
servers.add(server);
}
return servers;
}
Aggregations