Package io.trino.testing
Class AbstractTestingTrinoClient<T>
java.lang.Object
io.trino.testing.AbstractTestingTrinoClient<T>
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
TestingTrinoClient
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTestingTrinoClient(TestingTrinoServer trinoServer, Session defaultSession) protectedAbstractTestingTrinoClient(TestingTrinoServer trinoServer, Session defaultSession, okhttp3.OkHttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected abstract ResultsSession<T>getResultSession(Session session) listTables(Session session, String catalog, String schema) booleantableExists(Session session, String table)
-
Constructor Details
-
AbstractTestingTrinoClient
-
AbstractTestingTrinoClient
protected AbstractTestingTrinoClient(TestingTrinoServer trinoServer, Session defaultSession, okhttp3.OkHttpClient httpClient)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getResultSession
-
execute
- Throws:
QueryFailedException
-
execute
- Throws:
QueryFailedException
-
listTables
-
tableExists
-
getDefaultSession
-
getServer
-
getTypes
-
getNames
-