protected static class PhysicalOpUnitTestBase.MockExecutorFragmentContext extends OperatorFixture.MockFragmentContext implements ExecutorFragmentContext
The PhysicalOpUnitTestBase.MockExecutorFragmentContext should only be used in PhysicalOpUnitTestBase because PhysicalOpUnitTestBase
needs a dummy ExecutorFragmentContext to be passed to batch creators. If you are unit testing operators and need a mock fragment context
please use OperatorFixture.MockFragmentContext.
FragmentContext.ExecutorStateINJECTABLE_GETTER_METHODS| Constructor and Description |
|---|
MockExecutorFragmentContext(FragmentContext fragmentContext) |
close, getAliasRegistryProvider, getAllocator, getBufferManager, getCompiler, getConfig, getConstantValueHolder, getContextInformation, getExecutionControls, getExecutor, getExecutorState, getFragIdString, getFullRootSchema, getHandle, getMetastoreRegistry, getNewChildAllocator, getOptions, getPartitionExplorer, getQueryUserName, getScanDecodeExecutor, getScanExecutor, isImpersonationEnabled, newOperatorContext, newOperatorContext, requestMemorygetFunctionRegistry, getImplementationClass, getImplementationClass, getImplementationClass, getImplementationClass, getManagedBuffer, getManagedBuffer, getManagedBufferManager, getQueryId, getQueryIdString, getSQLStatementType, replaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getAliasRegistryProvider, getAllocator, getCompiler, getConfig, getExecutionControls, getExecutor, getExecutorState, getFragIdString, getFullRootSchema, getFunctionRegistry, getHandle, getImplementationClass, getImplementationClass, getImplementationClass, getImplementationClass, getManagedBuffer, getManagedBuffer, getManagedBufferManager, getMetastoreRegistry, getNewChildAllocator, getOptions, getQueryId, getQueryIdString, getQueryUserName, getScanDecodeExecutor, getScanExecutor, getSQLStatementType, isImpersonationEnabled, newOperatorContext, newOperatorContext, replace, requestMemorygetConstantValueHolder, getContextInformation, getPartitionExplorerpublic MockExecutorFragmentContext(FragmentContext fragmentContext)
public BufferAllocator getRootAllocator()
ExecutorFragmentContextgetRootAllocator in interface ExecutorFragmentContextpublic PhysicalPlanReader getPlanReader()
getPlanReader in interface ExecutorFragmentContextpublic ClusterCoordinator getClusterCoordinator()
getClusterCoordinator in interface ExecutorFragmentContextpublic CoordinationProtos.DrillbitEndpoint getForemanEndpoint()
getForemanEndpoint in interface ExecutorFragmentContextpublic CoordinationProtos.DrillbitEndpoint getEndpoint()
getEndpoint in interface ExecutorFragmentContextpublic Collection<CoordinationProtos.DrillbitEndpoint> getBits()
getBits in interface ExecutorFragmentContextpublic OperatorCreatorRegistry getOperatorCreatorRegistry()
getOperatorCreatorRegistry in interface ExecutorFragmentContextpublic void setBuffers(IncomingBuffers buffers)
setBuffers in interface ExecutorFragmentContextpublic QueryProfileStoreContext getProfileStoreContext()
getProfileStoreContext in interface ExecutorFragmentContextpublic WorkEventBus getWorkEventBus()
getWorkEventBus in interface ExecutorFragmentContextpublic Set<Map.Entry<UserServer.BitToUserConnection,UserServer.BitToUserConnectionConfig>> getUserConnections()
getUserConnections in interface ExecutorFragmentContextpublic void waitForSendComplete()
waitForSendComplete in interface ExchangeFragmentContextpublic AccountingDataTunnel getDataTunnel(CoordinationProtos.DrillbitEndpoint endpoint)
getDataTunnel in interface ExchangeFragmentContextpublic AccountingUserConnection getUserDataTunnel()
getUserDataTunnel in interface ExchangeFragmentContextpublic Controller getController()
getController in interface ExchangeFragmentContextpublic IncomingBuffers getBuffers()
getBuffers in interface ExchangeFragmentContextpublic FragmentStats getStats()
getStats in interface RootFragmentContextpublic void setExecutorState(FragmentContext.ExecutorState executorState)
setExecutorState in interface RootFragmentContextpublic boolean isUserAuthenticationEnabled()
isUserAuthenticationEnabled in interface ExecutorFragmentContextpublic void addRuntimeFilter(RuntimeFilterWritable runtimeFilter)
FragmentContextaddRuntimeFilter in interface FragmentContextaddRuntimeFilter in class OperatorFixture.MockFragmentContextruntimeFilter - runtime filterpublic RuntimeFilterWritable getRuntimeFilter(long rfIdentifier)
getRuntimeFilter in interface FragmentContextgetRuntimeFilter in class OperatorFixture.MockFragmentContextpublic RuntimeFilterWritable getRuntimeFilter(long rfIdentifier, long maxWaitTime, TimeUnit timeUnit)
FragmentContextgetRuntimeFilter in interface FragmentContextgetRuntimeFilter in class OperatorFixture.MockFragmentContextrfIdentifier - runtime filter identifiermaxWaitTime - max wait timetimeUnit - time unitCopyright © 2022 The Apache Software Foundation. All rights reserved.