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.ExecutorState
INJECTABLE_GETTER_METHODS
Constructor and Description |
---|
MockExecutorFragmentContext(FragmentContext fragmentContext) |
close, getAllocator, getBufferManager, getCompiler, getConfig, getConstantValueHolder, getContextInformation, getExecutionControls, getExecutor, getExecutorState, getFragIdString, getFullRootSchema, getHandle, getMetastoreRegistry, getNewChildAllocator, getOptions, getPartitionExplorer, getQueryUserName, getScanDecodeExecutor, getScanExecutor, isImpersonationEnabled, newOperatorContext, newOperatorContext, requestMemory
getFunctionRegistry, getImplementationClass, getImplementationClass, getImplementationClass, getImplementationClass, getManagedBuffer, getManagedBuffer, getManagedBufferManager, getQueryId, getQueryIdString, getSQLStatementType, replace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, 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, requestMemory
getConstantValueHolder, getContextInformation, getPartitionExplorer
public MockExecutorFragmentContext(FragmentContext fragmentContext)
public BufferAllocator getRootAllocator()
ExecutorFragmentContext
getRootAllocator
in interface ExecutorFragmentContext
public PhysicalPlanReader getPlanReader()
getPlanReader
in interface ExecutorFragmentContext
public ClusterCoordinator getClusterCoordinator()
getClusterCoordinator
in interface ExecutorFragmentContext
public CoordinationProtos.DrillbitEndpoint getForemanEndpoint()
getForemanEndpoint
in interface ExecutorFragmentContext
public CoordinationProtos.DrillbitEndpoint getEndpoint()
getEndpoint
in interface ExecutorFragmentContext
public Collection<CoordinationProtos.DrillbitEndpoint> getBits()
getBits
in interface ExecutorFragmentContext
public OperatorCreatorRegistry getOperatorCreatorRegistry()
getOperatorCreatorRegistry
in interface ExecutorFragmentContext
public void setBuffers(IncomingBuffers buffers)
setBuffers
in interface ExecutorFragmentContext
public QueryProfileStoreContext getProfileStoreContext()
getProfileStoreContext
in interface ExecutorFragmentContext
public WorkEventBus getWorkEventBus()
getWorkEventBus
in interface ExecutorFragmentContext
public Set<Map.Entry<UserServer.BitToUserConnection,UserServer.BitToUserConnectionConfig>> getUserConnections()
getUserConnections
in interface ExecutorFragmentContext
public void waitForSendComplete()
waitForSendComplete
in interface ExchangeFragmentContext
public AccountingDataTunnel getDataTunnel(CoordinationProtos.DrillbitEndpoint endpoint)
getDataTunnel
in interface ExchangeFragmentContext
public AccountingUserConnection getUserDataTunnel()
getUserDataTunnel
in interface ExchangeFragmentContext
public Controller getController()
getController
in interface ExchangeFragmentContext
public IncomingBuffers getBuffers()
getBuffers
in interface ExchangeFragmentContext
public FragmentStats getStats()
getStats
in interface RootFragmentContext
public void setExecutorState(FragmentContext.ExecutorState executorState)
setExecutorState
in interface RootFragmentContext
public boolean isUserAuthenticationEnabled()
isUserAuthenticationEnabled
in interface ExecutorFragmentContext
public void addRuntimeFilter(RuntimeFilterWritable runtimeFilter)
FragmentContext
addRuntimeFilter
in interface FragmentContext
addRuntimeFilter
in class OperatorFixture.MockFragmentContext
runtimeFilter
- runtime filterpublic RuntimeFilterWritable getRuntimeFilter(long rfIdentifier)
getRuntimeFilter
in interface FragmentContext
getRuntimeFilter
in class OperatorFixture.MockFragmentContext
public RuntimeFilterWritable getRuntimeFilter(long rfIdentifier, long maxWaitTime, TimeUnit timeUnit)
FragmentContext
getRuntimeFilter
in interface FragmentContext
getRuntimeFilter
in class OperatorFixture.MockFragmentContext
rfIdentifier
- runtime filter identifiermaxWaitTime
- max wait timetimeUnit
- time unitCopyright © 2021 The Apache Software Foundation. All rights reserved.