Package io.trino.testing
Class StandaloneQueryRunner
java.lang.Object
io.trino.testing.StandaloneQueryRunner
- All Implemented Interfaces:
QueryRunner,Closeable,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.testing.QueryRunner
QueryRunner.MaterializedResultWithPlan -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunctions(FunctionBundle functionBundle) voidclose()voidcreateCatalog(String catalogName, String connectorName) voidintvoidinjectTaskFailure(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
createPlan, executeWithPlan
-
Constructor Details
-
StandaloneQueryRunner
-
-
Method Details
-
execute
- Specified by:
executein interfaceQueryRunner
-
execute
- Specified by:
executein interfaceQueryRunner
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceQueryRunner
-
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
-
getPageSourceManager
- Specified by:
getPageSourceManagerin interfaceQueryRunner
-
getNodePartitioningManager
- Specified by:
getNodePartitioningManagerin interfaceQueryRunner
-
getStatsCalculator
- Specified by:
getStatsCalculatorin interfaceQueryRunner
-
getGroupProvider
- Specified by:
getGroupProviderin interfaceQueryRunner
-
getAccessControl
- Specified by:
getAccessControlin interfaceQueryRunner
-
getServer
-
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
-
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
-