public class BulkReceiverWrapper extends java.lang.Object implements BulkReceiver
Constructor and Description |
---|
BulkReceiverWrapper(JoinBatchCombinedReceiver joinBatchCombinedReceiver,
JoinRelation joinRelation) |
Modifier and Type | Method and Description |
---|---|
void |
init(Config cfg,
java.util.Set<java.lang.Integer> targets)
Initialize the receiver
|
boolean |
receive(int target,
java.util.Iterator<java.lang.Object> it)
Receive to specific target
|
boolean |
sync(int target,
byte[] message)
A sync event has occurred
|
static BulkReceiverWrapper |
wrap(JoinBatchCombinedReceiver joinBatchCombinedReceiver,
JoinRelation joinRelation) |
public BulkReceiverWrapper(JoinBatchCombinedReceiver joinBatchCombinedReceiver, JoinRelation joinRelation)
public static BulkReceiverWrapper wrap(JoinBatchCombinedReceiver joinBatchCombinedReceiver, JoinRelation joinRelation)
public void init(Config cfg, java.util.Set<java.lang.Integer> targets)
BulkReceiver
init
in interface BulkReceiver
cfg
- configurationtargets
- expected targetspublic boolean receive(int target, java.util.Iterator<java.lang.Object> it)
BulkReceiver
receive
in interface BulkReceiver
target
- the targetit
- iterator with messagespublic boolean sync(int target, byte[] message)
BulkReceiver
sync
in interface BulkReceiver
target
- the target id