public final class StandaloneQueryRunner extends Object implements QueryRunner
QueryRunner.MaterializedResultWithPlan| Constructor and Description |
|---|
StandaloneQueryRunner(Session defaultSession) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFunctions(List<? extends SqlFunction> functions) |
void |
close() |
void |
createCatalog(String catalogName,
String connectorName) |
void |
createCatalog(String catalogName,
String connectorName,
Map<String,String> properties) |
MaterializedResult |
execute(Session session,
String sql) |
MaterializedResult |
execute(String sql) |
TestingAccessControlManager |
getAccessControl() |
Session |
getDefaultSession() |
Lock |
getExclusiveLock() |
Metadata |
getMetadata() |
int |
getNodeCount() |
NodePartitioningManager |
getNodePartitioningManager() |
PageSourceManager |
getPageSourceManager() |
TestingPrestoServer |
getServer() |
SplitManager |
getSplitManager() |
StatsCalculator |
getStatsCalculator() |
TransactionManager |
getTransactionManager() |
void |
installPlugin(Plugin plugin) |
List<QualifiedObjectName> |
listTables(Session session,
String catalog,
String schema) |
void |
refreshNodes() |
boolean |
tableExists(Session session,
String table) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatePlan, executeWithPlanpublic StandaloneQueryRunner(Session defaultSession)
public MaterializedResult execute(String sql)
execute in interface QueryRunnerpublic MaterializedResult execute(Session session, String sql)
execute in interface QueryRunnerpublic void close()
close in interface QueryRunnerclose in interface Closeableclose in interface AutoCloseablepublic int getNodeCount()
getNodeCount in interface QueryRunnerpublic Session getDefaultSession()
getDefaultSession in interface QueryRunnerpublic TransactionManager getTransactionManager()
getTransactionManager in interface QueryRunnerpublic Metadata getMetadata()
getMetadata in interface QueryRunnerpublic SplitManager getSplitManager()
getSplitManager in interface QueryRunnerpublic PageSourceManager getPageSourceManager()
getPageSourceManager in interface QueryRunnerpublic NodePartitioningManager getNodePartitioningManager()
getNodePartitioningManager in interface QueryRunnerpublic StatsCalculator getStatsCalculator()
getStatsCalculator in interface QueryRunnerpublic TestingAccessControlManager getAccessControl()
getAccessControl in interface QueryRunnerpublic TestingPrestoServer getServer()
public void refreshNodes()
public void installPlugin(Plugin plugin)
installPlugin in interface QueryRunnerpublic void addFunctions(List<? extends SqlFunction> functions)
addFunctions in interface QueryRunnerpublic void createCatalog(String catalogName, String connectorName, Map<String,String> properties)
createCatalog in interface QueryRunnerpublic List<QualifiedObjectName> listTables(Session session, String catalog, String schema)
listTables in interface QueryRunnerpublic boolean tableExists(Session session, String table)
tableExists in interface QueryRunnerpublic Lock getExclusiveLock()
getExclusiveLock in interface QueryRunnerCopyright © 2012–2020. All rights reserved.