public class StreamingTSetEnvironment extends TSetEnvironment
TSetEnvironment
for streaming OperationMode
.
There is only a single execution mode that would run the entire TSet graph.
Constructor and Description |
---|
StreamingTSetEnvironment() |
StreamingTSetEnvironment(WorkerEnvironment wEnv) |
Modifier and Type | Method and Description |
---|---|
<K,V> SKeyedSourceTSet<K,V> |
createKeyedSource(SourceFunc<Tuple<K,V>> source,
int parallelism)
Creates a Keyed Source TSet based on the
SourceFunc that produces a Tuple |
<K,V> SKeyedSourceTSet<K,V> |
createKeyedSource(java.lang.String name,
SourceFunc<Tuple<K,V>> source,
int parallelism)
Same as above, but a source tset name can be provided at the instantiation
|
<T> SSourceTSet<T> |
createSource(SourceFunc<T> source,
int parallelism)
Creates a source TSet based on the
SourceFunc |
<T> SSourceTSet<T> |
createSource(java.lang.String name,
SourceFunc<T> source,
int parallelism)
Same as above, but a source tset name can be provided at the instantiation
|
OperationMode |
getOperationMode()
Returns the
OperationMode |
void |
run()
Runs the entire TSet graph
|
addInput, close, executeBuildContext, getConfig, getDefaultParallelism, getGraph, getInputs, getNoOfWorkers, getTaskExecutor, getTSetGraph, getWorkerID, initBatch, initStreaming, isCheckpointingEnabled, parallelize, parallelize, parallelize, parallelize, setDefaultParallelism, settBaseGraph
public StreamingTSetEnvironment(WorkerEnvironment wEnv)
public StreamingTSetEnvironment()
public OperationMode getOperationMode()
TSetEnvironment
OperationMode
getOperationMode
in class TSetEnvironment
public <T> SSourceTSet<T> createSource(SourceFunc<T> source, int parallelism)
TSetEnvironment
SourceFunc
createSource
in class TSetEnvironment
T
- data typesource
- source functionparallelism
- parallelismpublic <T> SSourceTSet<T> createSource(java.lang.String name, SourceFunc<T> source, int parallelism)
TSetEnvironment
createSource
in class TSetEnvironment
T
- data typename
- name for the tsetsource
- source functionparallelism
- parallelismpublic <K,V> SKeyedSourceTSet<K,V> createKeyedSource(SourceFunc<Tuple<K,V>> source, int parallelism)
TSetEnvironment
SourceFunc
that produces a Tuple
createKeyedSource
in class TSetEnvironment
K
- key typeV
- value typesource
- source functionparallelism
- parallelismpublic <K,V> SKeyedSourceTSet<K,V> createKeyedSource(java.lang.String name, SourceFunc<Tuple<K,V>> source, int parallelism)
TSetEnvironment
createKeyedSource
in class TSetEnvironment
K
- key typeV
- value typename
- name for the tsetsource
- source functionparallelism
- parallelismpublic void run()