Package bbflow
Class defaultCollector<T>
java.lang.Object
bbflow.defaultJob<T,T>
bbflow.defaultCollector<T>
- Type Parameters:
T
- Custom type of channels
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
Collector
default Collector of bbflow.ff_farm. Can be extended and runJob() overwritten
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
int
static final int
(package private) int
Fields inherited from class bbflow.defaultJob
combined, combined_side, CUSTOM_FUNCTION, id, in, INLINE, INLINE_MULTI, out, runType, sendpos
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class bbflow.defaultJob
addInputChannel, addOutputChannel, EOS, getInputChannel, getOutputChannel, init, removeInputChannel, removeOutputChannel, run, runJob, runJobMulti, sendEOS, sendEOS, sendOut, sendOut, sendOutTo, sendOutTo, sendOutToAll, setId, uniqueJob, uniqueJob
-
Field Details
-
FIRSTCOME
public static final int FIRSTCOME- See Also:
-
ROUNDROBIN
public static final int ROUNDROBIN- See Also:
-
GATHER
public static final int GATHER- See Also:
-
strategy
int strategy -
position
public int position
-
-
Constructor Details
-
defaultCollector
public defaultCollector() -
defaultCollector
public defaultCollector(int strategy) default constructor- Parameters:
strategy
- Collector communication strategy chosen between FIRSTCOME, GATHER and ALLGATHER
-
-
Method Details
-
preload
public static void preload() -
runJob
Description copied from class:defaultJob
blank function that should be overwritten by class extending bbflow.defaultJob. Here main computation task is done once we're sure there's data in at least one of the input channels Lists 'in' and 'out' must be used manually and EOS() must be managed by the user.- Overrides:
runJob
in classdefaultJob<T,
T> - Throws:
InterruptedException
-