Class StandaloneQueryRunner

  • All Implemented Interfaces:
    io.prestosql.testing.QueryRunner, java.io.Closeable, java.lang.AutoCloseable

    public final class StandaloneQueryRunner
    extends java.lang.Object
    implements io.prestosql.testing.QueryRunner
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.prestosql.testing.QueryRunner

        io.prestosql.testing.QueryRunner.MaterializedResultWithPlan
    • Constructor Summary

      Constructors 
      Constructor Description
      StandaloneQueryRunner​(io.prestosql.Session defaultSession)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFunctions​(java.util.List<? extends io.prestosql.metadata.SqlFunction> functions)  
      void close()  
      void createCatalog​(java.lang.String catalogName, java.lang.String connectorName)  
      void createCatalog​(java.lang.String catalogName, java.lang.String connectorName, java.util.Map<java.lang.String,​java.lang.String> properties)  
      io.prestosql.testing.MaterializedResult execute​(io.prestosql.Session session, java.lang.String sql)  
      io.prestosql.testing.MaterializedResult execute​(java.lang.String sql)  
      io.prestosql.testing.TestingAccessControlManager getAccessControl()  
      io.prestosql.Session getDefaultSession()  
      java.util.concurrent.locks.Lock getExclusiveLock()  
      io.prestosql.metadata.Metadata getMetadata()  
      int getNodeCount()  
      io.prestosql.sql.planner.NodePartitioningManager getNodePartitioningManager()  
      io.prestosql.split.PageSourceManager getPageSourceManager()  
      io.prestosql.server.testing.TestingPrestoServer getServer()  
      io.prestosql.split.SplitManager getSplitManager()  
      io.prestosql.cost.StatsCalculator getStatsCalculator()  
      io.prestosql.transaction.TransactionManager getTransactionManager()  
      void installPlugin​(io.prestosql.spi.Plugin plugin)  
      java.util.List<io.prestosql.metadata.QualifiedObjectName> listTables​(io.prestosql.Session session, java.lang.String catalog, java.lang.String schema)  
      void refreshNodes()  
      boolean tableExists​(io.prestosql.Session session, java.lang.String table)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.prestosql.testing.QueryRunner

        createPlan, executeWithPlan
    • Constructor Detail

      • StandaloneQueryRunner

        public StandaloneQueryRunner​(io.prestosql.Session defaultSession)
    • Method Detail

      • execute

        public io.prestosql.testing.MaterializedResult execute​(java.lang.String sql)
        Specified by:
        execute in interface io.prestosql.testing.QueryRunner
      • execute

        public io.prestosql.testing.MaterializedResult execute​(io.prestosql.Session session,
                                                               java.lang.String sql)
        Specified by:
        execute in interface io.prestosql.testing.QueryRunner
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface io.prestosql.testing.QueryRunner
      • getNodeCount

        public int getNodeCount()
        Specified by:
        getNodeCount in interface io.prestosql.testing.QueryRunner
      • getDefaultSession

        public io.prestosql.Session getDefaultSession()
        Specified by:
        getDefaultSession in interface io.prestosql.testing.QueryRunner
      • getTransactionManager

        public io.prestosql.transaction.TransactionManager getTransactionManager()
        Specified by:
        getTransactionManager in interface io.prestosql.testing.QueryRunner
      • getMetadata

        public io.prestosql.metadata.Metadata getMetadata()
        Specified by:
        getMetadata in interface io.prestosql.testing.QueryRunner
      • getSplitManager

        public io.prestosql.split.SplitManager getSplitManager()
        Specified by:
        getSplitManager in interface io.prestosql.testing.QueryRunner
      • getPageSourceManager

        public io.prestosql.split.PageSourceManager getPageSourceManager()
        Specified by:
        getPageSourceManager in interface io.prestosql.testing.QueryRunner
      • getNodePartitioningManager

        public io.prestosql.sql.planner.NodePartitioningManager getNodePartitioningManager()
        Specified by:
        getNodePartitioningManager in interface io.prestosql.testing.QueryRunner
      • getStatsCalculator

        public io.prestosql.cost.StatsCalculator getStatsCalculator()
        Specified by:
        getStatsCalculator in interface io.prestosql.testing.QueryRunner
      • getAccessControl

        public io.prestosql.testing.TestingAccessControlManager getAccessControl()
        Specified by:
        getAccessControl in interface io.prestosql.testing.QueryRunner
      • getServer

        public io.prestosql.server.testing.TestingPrestoServer getServer()
      • refreshNodes

        public void refreshNodes()
      • installPlugin

        public void installPlugin​(io.prestosql.spi.Plugin plugin)
        Specified by:
        installPlugin in interface io.prestosql.testing.QueryRunner
      • addFunctions

        public void addFunctions​(java.util.List<? extends io.prestosql.metadata.SqlFunction> functions)
        Specified by:
        addFunctions in interface io.prestosql.testing.QueryRunner
      • createCatalog

        public void createCatalog​(java.lang.String catalogName,
                                  java.lang.String connectorName)
      • createCatalog

        public void createCatalog​(java.lang.String catalogName,
                                  java.lang.String connectorName,
                                  java.util.Map<java.lang.String,​java.lang.String> properties)
        Specified by:
        createCatalog in interface io.prestosql.testing.QueryRunner
      • listTables

        public java.util.List<io.prestosql.metadata.QualifiedObjectName> listTables​(io.prestosql.Session session,
                                                                                    java.lang.String catalog,
                                                                                    java.lang.String schema)
        Specified by:
        listTables in interface io.prestosql.testing.QueryRunner
      • tableExists

        public boolean tableExists​(io.prestosql.Session session,
                                   java.lang.String table)
        Specified by:
        tableExists in interface io.prestosql.testing.QueryRunner
      • getExclusiveLock

        public java.util.concurrent.locks.Lock getExclusiveLock()
        Specified by:
        getExclusiveLock in interface io.prestosql.testing.QueryRunner