Interface IMPPDataExchangeManager
-
- All Known Implementing Classes:
MPPDataExchangeManager
public interface IMPPDataExchangeManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISinkHandlecreateLocalSinkHandle(org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId localFragmentInstanceId, org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId remoteFragmentInstanceId, java.lang.String remotePlanNodeId, FragmentInstanceContext instanceContext)ISourceHandlecreateLocalSourceHandle(org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId localFragmentInstanceId, java.lang.String localPlanNodeId, org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId remoteFragmentInstanceId, IMPPDataExchangeManagerCallback<java.lang.Throwable> onFailureCallback)ISinkHandlecreateSinkHandle(org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId localFragmentInstanceId, org.apache.iotdb.common.rpc.thrift.TEndPoint remoteEndpoint, org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId remoteFragmentInstanceId, java.lang.String remotePlanNodeId, FragmentInstanceContext instanceContext)Create a sink handle who sends data blocks to a remote downstream fragment instance in async manner.ISourceHandlecreateSourceHandle(org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId localFragmentInstanceId, java.lang.String localPlanNodeId, org.apache.iotdb.common.rpc.thrift.TEndPoint remoteEndpoint, org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId remoteFragmentInstanceId, IMPPDataExchangeManagerCallback<java.lang.Throwable> onFailureCallback)Create a source handle who fetches data blocks from a remote upstream fragment instance for a plan node of a local fragment instance in async manner.voidforceDeregisterFragmentInstance(org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId fragmentInstanceId)Release all the related resources of a fragment instance, including data blocks that are not yet fetched by downstream fragment instances.
-
-
-
Method Detail
-
createSinkHandle
ISinkHandle createSinkHandle(org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId localFragmentInstanceId, org.apache.iotdb.common.rpc.thrift.TEndPoint remoteEndpoint, org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId remoteFragmentInstanceId, java.lang.String remotePlanNodeId, FragmentInstanceContext instanceContext)
Create a sink handle who sends data blocks to a remote downstream fragment instance in async manner.- Parameters:
localFragmentInstanceId- ID of the local fragment instance who generates and sends data blocks to the sink handle.remoteEndpoint- Hostname and Port of the remote fragment instance where the data blocks should be sent to.remotePlanNodeId- The sink plan node ID of the remote fragment instance.instanceContext- The context of local fragment instance.
-
createLocalSinkHandle
ISinkHandle createLocalSinkHandle(org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId localFragmentInstanceId, org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId remoteFragmentInstanceId, java.lang.String remotePlanNodeId, FragmentInstanceContext instanceContext)
-
createSourceHandle
ISourceHandle createSourceHandle(org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId localFragmentInstanceId, java.lang.String localPlanNodeId, org.apache.iotdb.common.rpc.thrift.TEndPoint remoteEndpoint, org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId remoteFragmentInstanceId, IMPPDataExchangeManagerCallback<java.lang.Throwable> onFailureCallback)
Create a source handle who fetches data blocks from a remote upstream fragment instance for a plan node of a local fragment instance in async manner.- Parameters:
localFragmentInstanceId- ID of the local fragment instance who receives data blocks from the source handle.localPlanNodeId- The local sink plan node ID.remoteEndpoint- Hostname and Port of the remote fragment instance where the data blocks should be received from.remoteFragmentInstanceId- ID of the remote fragment instance.onFailureCallback- The callback on failure.
-
createLocalSourceHandle
ISourceHandle createLocalSourceHandle(org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId localFragmentInstanceId, java.lang.String localPlanNodeId, org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId remoteFragmentInstanceId, IMPPDataExchangeManagerCallback<java.lang.Throwable> onFailureCallback)
-
forceDeregisterFragmentInstance
void forceDeregisterFragmentInstance(org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceId fragmentInstanceId)
Release all the related resources of a fragment instance, including data blocks that are not yet fetched by downstream fragment instances.This method should be called when a fragment instance finished in an abnormal state.
- Parameters:
fragmentInstanceId- ID of the fragment instance to be released.
-
-