public class ArrowAllToAll extends java.lang.Object implements ReceiveCallback
Constructor and Description |
---|
ArrowAllToAll(Config cfg,
IWorkerController controller,
java.util.Set<java.lang.Integer> sources,
java.util.Set<java.lang.Integer> targets,
LogicalPlan plan,
int edgeId,
ArrowCallback callback,
Schema schema,
RootAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish() |
void |
finish(int source) |
boolean |
insert(Table table,
int target) |
boolean |
isComplete()
Check weather complete
|
void |
onReceive(int source,
ChannelBuffer buffer,
int length) |
void |
onReceiveHeader(int source,
boolean fin,
int[] header,
int length) |
boolean |
onSendComplete(int target,
java.nio.ByteBuffer buffer,
int length) |
public ArrowAllToAll(Config cfg, IWorkerController controller, java.util.Set<java.lang.Integer> sources, java.util.Set<java.lang.Integer> targets, LogicalPlan plan, int edgeId, ArrowCallback callback, Schema schema, RootAllocator allocator)
public boolean insert(Table table, int target)
public boolean isComplete()
public void finish()
public void finish(int source)
public void close()
public void onReceive(int source, ChannelBuffer buffer, int length)
onReceive
in interface ReceiveCallback
public void onReceiveHeader(int source, boolean fin, int[] header, int length)
onReceiveHeader
in interface ReceiveCallback
public boolean onSendComplete(int target, java.nio.ByteBuffer buffer, int length)
onSendComplete
in interface ReceiveCallback