Package io.trino.testing
Class DistributedQueryRunner
java.lang.Object
io.trino.testing.DistributedQueryRunner
- All Implemented Interfaces:
QueryRunner,Closeable,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceNested classes/interfaces inherited from interface io.trino.testing.QueryRunner
QueryRunner.MaterializedResultWithPlan -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunctions(FunctionBundle functionBundle) voidaddServers(int nodeCount) static DistributedQueryRunner.Builder<?> final voidclose()voidcreatePlan(Session session, String sql) executeWithPlan(Session session, String sql) intgetQueryPlan(QueryId queryId) List<io.opentelemetry.sdk.trace.data.SpanData> getSpans()voidinjectTaskFailure(String traceToken, int stageId, int partitionId, int attemptId, FailureInjector.InjectedFailureType injectionType, Optional<ErrorType> errorType) voidinstallPlugin(Plugin plugin) listTables(Session session, String catalog, String schema) voidloadExchangeManager(String name, Map<String, String> properties) booleantableExists(Session session, String table) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.testing.QueryRunner
createCatalog, execute, inTransaction, inTransaction
-
Method Details
-
builder
-
addServers
public void addServers(int nodeCount) -
getClient
-
getSpans
- Specified by:
getSpansin interfaceQueryRunner
-
getNodeCount
public int getNodeCount()- Specified by:
getNodeCountin interfaceQueryRunner
-
getDefaultSession
- Specified by:
getDefaultSessionin interfaceQueryRunner
-
getTransactionManager
- Specified by:
getTransactionManagerin interfaceQueryRunner
-
getPlannerContext
- Specified by:
getPlannerContextin interfaceQueryRunner
-
getQueryExplainer
- Specified by:
getQueryExplainerin interfaceQueryRunner
-
getSessionPropertyManager
- Specified by:
getSessionPropertyManagerin interfaceQueryRunner
-
getSplitManager
- Specified by:
getSplitManagerin interfaceQueryRunner
-
getPageSourceManager
- Specified by:
getPageSourceManagerin interfaceQueryRunner
-
getNodePartitioningManager
- Specified by:
getNodePartitioningManagerin interfaceQueryRunner
-
getStatsCalculator
- Specified by:
getStatsCalculatorin interfaceQueryRunner
-
getAccessControl
- Specified by:
getAccessControlin interfaceQueryRunner
-
getGroupProvider
- Specified by:
getGroupProviderin interfaceQueryRunner
-
getSessionPropertyDefaults
-
getCoordinator
- Specified by:
getCoordinatorin interfaceQueryRunner
-
getServers
-
installPlugin
- Specified by:
installPluginin interfaceQueryRunner
-
addFunctions
- Specified by:
addFunctionsin interfaceQueryRunner
-
createCatalog
- Specified by:
createCatalogin interfaceQueryRunner
-
listTables
- Specified by:
listTablesin interfaceQueryRunner
-
tableExists
- Specified by:
tableExistsin interfaceQueryRunner
-
execute
- Specified by:
executein interfaceQueryRunner
-
executeWithPlan
- Specified by:
executeWithPlanin interfaceQueryRunner
-
createPlan
- Specified by:
createPlanin interfaceQueryRunner
-
getQueryPlan
-
getExclusiveLock
- Specified by:
getExclusiveLockin interfaceQueryRunner
-
injectTaskFailure
public void injectTaskFailure(String traceToken, int stageId, int partitionId, int attemptId, FailureInjector.InjectedFailureType injectionType, Optional<ErrorType> errorType) - Specified by:
injectTaskFailurein interfaceQueryRunner
-
loadExchangeManager
- Specified by:
loadExchangeManagerin interfaceQueryRunner
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceQueryRunner
-