public abstract class AbstractTestingPrestoClient<T> extends Object implements Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTestingPrestoClient(TestingPrestoServer prestoServer,
Session defaultSession) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ResultWithQueryId<T> |
execute(Session session,
String sql) |
ResultWithQueryId<T> |
execute(String sql) |
Session |
getDefaultSession() |
protected abstract ResultsSession<T> |
getResultSession(Session session) |
TestingPrestoServer |
getServer() |
protected List<Type> |
getTypes(List<Column> columns) |
List<QualifiedObjectName> |
listTables(Session session,
String catalog,
String schema) |
boolean |
tableExists(Session session,
String table) |
protected AbstractTestingPrestoClient(TestingPrestoServer prestoServer, Session defaultSession)
public void close()
close in interface Closeableclose in interface AutoCloseableprotected abstract ResultsSession<T> getResultSession(Session session)
public ResultWithQueryId<T> execute(String sql)
public ResultWithQueryId<T> execute(Session session, String sql)
public List<QualifiedObjectName> listTables(Session session, String catalog, String schema)
public Session getDefaultSession()
public TestingPrestoServer getServer()
Copyright © 2012–2020. All rights reserved.