Package org.apache.drill.exec.server
Class DrillbitContext
java.lang.Object
org.apache.drill.exec.server.DrillbitContext
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorDescriptionDrillbitContext
(CoordinationProtos.DrillbitEndpoint endpoint, BootStrapContext context, ClusterCoordinator coord, Controller controller, DataConnectionCreator connectionsPool, WorkEventBus workBus, PersistentStoreProvider provider) DrillbitContext
(CoordinationProtos.DrillbitEndpoint endpoint, BootStrapContext context, ClusterCoordinator coord, Controller controller, DataConnectionCreator connectionsPool, WorkEventBus workBus, PersistentStoreProvider provider, PersistentStoreProvider profileStoreProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
io.netty.channel.EventLoopGroup
getBits()
com.codahale.metrics.MetricRegistry
Use the operator table built during startup when "exec.udf.use_dynamic" option is set to false.boolean
isForeman
(CoordinationProtos.DrillbitEndpoint endpoint) boolean
boolean
isOnline
(CoordinationProtos.DrillbitEndpoint endpoint) void
startRM()
Starts the resource manager.
-
Constructor Details
-
DrillbitContext
public DrillbitContext(CoordinationProtos.DrillbitEndpoint endpoint, BootStrapContext context, ClusterCoordinator coord, Controller controller, DataConnectionCreator connectionsPool, WorkEventBus workBus, PersistentStoreProvider provider) -
DrillbitContext
public DrillbitContext(CoordinationProtos.DrillbitEndpoint endpoint, BootStrapContext context, ClusterCoordinator coord, Controller controller, DataConnectionCreator connectionsPool, WorkEventBus workBus, PersistentStoreProvider provider, PersistentStoreProvider profileStoreProvider)
-
-
Method Details
-
getProfileStoreContext
-
startRM
public void startRM()Starts the resource manager. Must be called separately from the constructor after the system property mechanism is initialized since the builder will consult system options to determine the proper RM to use. -
getFunctionImplementationRegistry
-
getWorkBus
-
getOptionManager
- Returns:
- the system options manager. It is important to note that this manager only contains options at the "system" level and not "session" level.
-
getEndpoint
-
getConfig
-
getAvailableBits
-
getBits
-
isOnline
-
isForeman
-
isForemanOnline
public boolean isForemanOnline() -
getAllocator
-
getOperatorCreatorRegistry
-
getStorage
-
getAliasRegistryProvider
-
getOauthTokenProvider
-
getBitLoopGroup
public io.netty.channel.EventLoopGroup getBitLoopGroup() -
getDataConnectionsPool
-
getController
-
getMetrics
public com.codahale.metrics.MetricRegistry getMetrics() -
getPlanReader
-
getStoreProvider
-
getSchemaFactory
-
getClusterCoordinator
-
getCompiler
-
getExecutor
-
getScanExecutor
-
getScanDecodeExecutor
-
getLpPersistence
-
getClasspathScan
-
getRemoteFunctionRegistry
-
getOperatorTable
Use the operator table built during startup when "exec.udf.use_dynamic" option is set to false. This operator table has standard SQL functions, operators and drill built-in user defined functions (UDFs). It does not include dynamic user defined functions (UDFs) that get added/removed at run time. This operator table is meant to be used for high throughput, low latency operational queries, for which cost of building operator table is high, both in terms of CPU and heap memory usage.- Returns:
- - Operator table
-
getAuthProvider
-
getUserConnections
public Set<Map.Entry<UserServer.BitToUserConnection,UserServer.BitToUserConnectionConfig>> getUserConnections() -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
getResourceManager
-
getMetastoreRegistry
-
getCounters
-