public interface DataFlowOperation
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the operation
|
default void |
finish(int source)
If this is a larger transfer of dataflow style, we need to finish
|
default MessageType |
getDataType()
returns the data type that is associated with the data flow operation
|
default MessageType |
getKeyType()
returns the key type that is associated with the data flow operation
|
LogicalPlan |
getLogicalPlan()
Task plan associated with this operation
|
default MessageType |
getReceiveDataType()
returns the data type that is associated with the data flow operation
|
default MessageType |
getReceiveKeyType()
returns the key type that is associated with the data flow operation
|
default java.util.Set<java.lang.Integer> |
getSources()
Get the sources of the operation
|
default java.util.Set<java.lang.Integer> |
getTargets()
Get targets of operation
|
java.lang.String |
getUniqueId()
Returns a unique id for this operation.
|
default boolean |
isComplete()
Weather the operation doesn't have any pending sends or receives
|
default boolean |
isDelegateComplete() |
boolean |
progress()
Progress the pending dataflow operations
|
void |
reset()
Reset and get the operation to initial state
|
boolean |
send(int source,
java.lang.Object message,
int flags)
Send a send message, this call will work asynchronously
|
boolean |
send(int source,
java.lang.Object message,
int flags,
int target)
Send the message on a specific path
|
boolean |
sendPartial(int source,
java.lang.Object message,
int flags)
Use this to inject partial results in a distributed dataflow operation
|
boolean |
sendPartial(int source,
java.lang.Object message,
int flags,
int target)
Send partial message on a specific path
|
boolean sendPartial(int source, java.lang.Object message, int flags)
message
- messageboolean send(int source, java.lang.Object message, int flags)
source
- source taskmessage
- message as a generic objectboolean send(int source, java.lang.Object message, int flags, int target)
source
- source taskmessage
- a generic java objecttarget
- target taskboolean sendPartial(int source, java.lang.Object message, int flags, int target)
source
- the sourcemessage
- message as a generic objecttarget
- the final targetboolean progress()
void close()
void reset()
default boolean isComplete()
default boolean isDelegateComplete()
default void finish(int source)
default MessageType getKeyType()
default MessageType getReceiveKeyType()
default MessageType getDataType()
default MessageType getReceiveDataType()
LogicalPlan getLogicalPlan()
java.lang.String getUniqueId()
default java.util.Set<java.lang.Integer> getSources()
default java.util.Set<java.lang.Integer> getTargets()