Package io.trino.testing
Class StandaloneQueryRunner
- java.lang.Object
-
- io.trino.testing.StandaloneQueryRunner
-
- All Implemented Interfaces:
QueryRunner,Closeable,AutoCloseable
public final class StandaloneQueryRunner extends Object implements QueryRunner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.testing.QueryRunner
QueryRunner.MaterializedResultWithPlan
-
-
Constructor Summary
Constructors Constructor Description StandaloneQueryRunner(Session defaultSession)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.testing.QueryRunner
createPlan, executeWithPlan
-
-
-
-
Constructor Detail
-
StandaloneQueryRunner
public StandaloneQueryRunner(Session defaultSession)
-
-
Method Detail
-
execute
public MaterializedResult execute(String sql)
- Specified by:
executein interfaceQueryRunner
-
execute
public MaterializedResult execute(Session session, String sql)
- 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
public Session getDefaultSession()
- Specified by:
getDefaultSessionin interfaceQueryRunner
-
getTransactionManager
public TransactionManager getTransactionManager()
- Specified by:
getTransactionManagerin interfaceQueryRunner
-
getMetadata
public Metadata getMetadata()
- Specified by:
getMetadatain interfaceQueryRunner
-
getTypeManager
public TypeManager getTypeManager()
- Specified by:
getTypeManagerin interfaceQueryRunner
-
getQueryExplainer
public QueryExplainer getQueryExplainer()
- Specified by:
getQueryExplainerin interfaceQueryRunner
-
getSessionPropertyManager
public SessionPropertyManager getSessionPropertyManager()
- Specified by:
getSessionPropertyManagerin interfaceQueryRunner
-
getFunctionManager
public FunctionManager getFunctionManager()
- Specified by:
getFunctionManagerin interfaceQueryRunner
-
getSplitManager
public SplitManager getSplitManager()
- Specified by:
getSplitManagerin interfaceQueryRunner
-
getPageSourceManager
public PageSourceManager getPageSourceManager()
- Specified by:
getPageSourceManagerin interfaceQueryRunner
-
getNodePartitioningManager
public NodePartitioningManager getNodePartitioningManager()
- Specified by:
getNodePartitioningManagerin interfaceQueryRunner
-
getStatsCalculator
public StatsCalculator getStatsCalculator()
- Specified by:
getStatsCalculatorin interfaceQueryRunner
-
getGroupProvider
public TestingGroupProvider getGroupProvider()
- Specified by:
getGroupProviderin interfaceQueryRunner
-
getAccessControl
public TestingAccessControlManager getAccessControl()
- Specified by:
getAccessControlin interfaceQueryRunner
-
getServer
public TestingTrinoServer getServer()
-
refreshNodes
public void refreshNodes()
-
installPlugin
public void installPlugin(Plugin plugin)
- Specified by:
installPluginin interfaceQueryRunner
-
addFunctions
public void addFunctions(FunctionBundle functionBundle)
- Specified by:
addFunctionsin interfaceQueryRunner
-
createCatalog
public void createCatalog(String catalogName, String connectorName, Map<String,String> properties)
- Specified by:
createCatalogin interfaceQueryRunner
-
listTables
public List<QualifiedObjectName> listTables(Session session, String catalog, String schema)
- Specified by:
listTablesin interfaceQueryRunner
-
tableExists
public boolean tableExists(Session session, String table)
- Specified by:
tableExistsin interfaceQueryRunner
-
getExclusiveLock
public Lock 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
public void loadExchangeManager(String name, Map<String,String> properties)
- Specified by:
loadExchangeManagerin interfaceQueryRunner
-
-