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 classNested 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()voidcreateCatalog(String catalogName, String connectorName) voidcreatePlan(Session session, String sql, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) executeWithPlan(Session session, String sql, WarningCollector warningCollector) executeWithQueryId(Session session, String sql) intgetQueryPlan(QueryId queryId) 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)
-
Method Details
-
builder
-
addServers
- Throws:
Exception
-
getClient
-
getNodeCount
public int getNodeCount()- Specified by:
getNodeCountin interfaceQueryRunner
-
getDefaultSession
- Specified by:
getDefaultSessionin interfaceQueryRunner
-
getTransactionManager
- Specified by:
getTransactionManagerin interfaceQueryRunner
-
getMetadata
- Specified by:
getMetadatain interfaceQueryRunner
-
getTypeManager
- Specified by:
getTypeManagerin interfaceQueryRunner
-
getQueryExplainer
- Specified by:
getQueryExplainerin interfaceQueryRunner
-
getSessionPropertyManager
- Specified by:
getSessionPropertyManagerin interfaceQueryRunner
-
getFunctionManager
- Specified by:
getFunctionManagerin interfaceQueryRunner
-
getSplitManager
- Specified by:
getSplitManagerin interfaceQueryRunner
-
getExchangeManager
- Specified by:
getExchangeManagerin 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
-
getBackupCoordinator
-
getServers
-
installPlugin
- Specified by:
installPluginin interfaceQueryRunner
-
addFunctions
- Specified by:
addFunctionsin interfaceQueryRunner
-
createCatalog
-
createCatalog
- Specified by:
createCatalogin interfaceQueryRunner
-
listTables
- Specified by:
listTablesin interfaceQueryRunner
-
tableExists
- Specified by:
tableExistsin interfaceQueryRunner
-
execute
- Specified by:
executein interfaceQueryRunner
-
execute
- Specified by:
executein interfaceQueryRunner
-
executeWithQueryId
-
executeWithPlan
public QueryRunner.MaterializedResultWithPlan executeWithPlan(Session session, String sql, WarningCollector warningCollector) - Specified by:
executeWithPlanin interfaceQueryRunner
-
createPlan
public Plan createPlan(Session session, String sql, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) - 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
-