public class LocalQueryRunner extends Object implements QueryRunner
Constructor and Description |
---|
LocalQueryRunner(Session defaultSession) |
LocalQueryRunner(Session defaultSession,
boolean alwaysRevokeMemory) |
LocalQueryRunner(Session defaultSession,
FeaturesConfig featuresConfig) |
LocalQueryRunner(Session defaultSession,
FeaturesConfig featuresConfig,
boolean withInitialTransaction,
boolean alwaysRevokeMemory) |
LocalQueryRunner(Session defaultSession,
FeaturesConfig featuresConfig,
NodeSpillConfig nodeSpillConfig,
boolean withInitialTransaction,
boolean alwaysRevokeMemory) |
public LocalQueryRunner(Session defaultSession)
public LocalQueryRunner(Session defaultSession, boolean alwaysRevokeMemory)
public LocalQueryRunner(Session defaultSession, FeaturesConfig featuresConfig)
public LocalQueryRunner(Session defaultSession, FeaturesConfig featuresConfig, boolean withInitialTransaction, boolean alwaysRevokeMemory)
public LocalQueryRunner(Session defaultSession, FeaturesConfig featuresConfig, NodeSpillConfig nodeSpillConfig, boolean withInitialTransaction, boolean alwaysRevokeMemory)
public static LocalQueryRunner queryRunnerWithInitialTransaction(Session defaultSession)
public void close()
close
in interface QueryRunner
close
in interface Closeable
close
in interface AutoCloseable
public int getNodeCount()
getNodeCount
in interface QueryRunner
public TypeRegistry getTypeManager()
public TransactionManager getTransactionManager()
getTransactionManager
in interface QueryRunner
public Metadata getMetadata()
getMetadata
in interface QueryRunner
public CostCalculator getCostCalculator()
getCostCalculator
in interface QueryRunner
public TestingAccessControlManager getAccessControl()
getAccessControl
in interface QueryRunner
public ExecutorService getExecutor()
public ScheduledExecutorService getScheduler()
public Session getDefaultSession()
getDefaultSession
in interface QueryRunner
public ExpressionCompiler getExpressionCompiler()
public void createCatalog(String catalogName, ConnectorFactory connectorFactory, Map<String,String> properties)
public void installPlugin(Plugin plugin)
installPlugin
in interface QueryRunner
public void createCatalog(String catalogName, String connectorName, Map<String,String> properties)
createCatalog
in interface QueryRunner
public LocalQueryRunner printPlan()
public List<QualifiedObjectName> listTables(Session session, String catalog, String schema)
listTables
in interface QueryRunner
public boolean tableExists(Session session, String table)
tableExists
in interface QueryRunner
public MaterializedResult execute(String sql)
execute
in interface QueryRunner
public MaterializedResult execute(Session session, String sql)
execute
in interface QueryRunner
public <T> T inTransaction(java.util.function.Function<Session,T> transactionSessionConsumer)
public <T> T inTransaction(Session session, java.util.function.Function<Session,T> transactionSessionConsumer)
public Lock getExclusiveLock()
getExclusiveLock
in interface QueryRunner
public List<Driver> createDrivers(String sql, OutputFactory outputFactory, TaskContext taskContext)
public List<Driver> createDrivers(Session session, String sql, OutputFactory outputFactory, TaskContext taskContext)
public Plan createPlan(Session session, String sql, LogicalPlanner.Stage stage)
public Plan createPlan(Session session, String sql, LogicalPlanner.Stage stage, boolean forceSingleNode)
public List<PlanOptimizer> getPlanOptimizers(boolean forceSingleNode)
public Plan createPlan(Session session, String sql, List<PlanOptimizer> optimizers)
public Plan createPlan(Session session, String sql, List<PlanOptimizer> optimizers, LogicalPlanner.Stage stage)
public OperatorFactory createTableScanOperator(Session session, int operatorId, PlanNodeId planNodeId, String tableName, String... columnNames)
public OperatorFactory createHashProjectOperator(int operatorId, PlanNodeId planNodeId, List<Type> columnTypes)
Copyright © 2012-2017. All Rights Reserved.