use of com.facebook.presto.hive.metastore.HiveMetastoreClient in project presto by prestodb.
the class MockHiveMetastoreClientFactory method create.
@Override
public HiveMetastoreClient create(String host, int port) throws TTransportException {
checkState(!clients.isEmpty(), "mock not given enough clients");
HiveMetastoreClient client = clients.remove(0);
if (client == null) {
throw new TTransportException(TTransportException.TIMED_OUT);
}
return client;
}
Aggregations