public class StreamingEnvironment extends TSetEnvironment
TSetEnvironment
for streaming OperationMode
.
There is only a single execution mode that would run the entire TSet graph.
Constructor and Description |
---|
StreamingEnvironment() |
StreamingEnvironment(WorkerEnvironment wEnv) |
Modifier and Type | Method and Description |
---|---|
BaseTSet<java.lang.Integer> |
createArrowSource(java.lang.String filePath,
int parallelism) |
SSourceTSet<java.lang.Object> |
createArrowSource(java.lang.String filePath,
java.lang.String fileName,
int parallelism,
java.lang.String schema) |
SSourceTSet<java.lang.String[]> |
createCSVSource(java.lang.String filePath,
int datasize,
int parallelism,
java.lang.String type) |
<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
|
SSourceTSet<java.lang.String> |
createTextSource(java.lang.String filePath,
int dataSize,
int parallelism,
java.lang.String type) |
OperationMode |
getOperationMode()
Returns the
OperationMode |
void |
run()
Runs the entire TSet graph
|
addInput, close, executeBuildContext, getConfig, getDefaultParallelism, getGraph, getInputs, getNoOfWorkers, getTaskExecutor, getTSetGraph, getWorkerEnv, getWorkerID, initBatch, initCheckpointing, initStreaming, isCheckpointingEnabled, parallelize, parallelize, parallelize, parallelize, setDefaultParallelism, settBaseGraph
public StreamingEnvironment(WorkerEnvironment wEnv)
public StreamingEnvironment()
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 SSourceTSet<java.lang.String[]> createCSVSource(java.lang.String filePath, int datasize, int parallelism, java.lang.String type)
createCSVSource
in class TSetEnvironment
public SSourceTSet<java.lang.String> createTextSource(java.lang.String filePath, int dataSize, int parallelism, java.lang.String type)
createTextSource
in class TSetEnvironment
public BaseTSet<java.lang.Integer> createArrowSource(java.lang.String filePath, int parallelism)
createArrowSource
in class TSetEnvironment
public SSourceTSet<java.lang.Object> createArrowSource(java.lang.String filePath, java.lang.String fileName, int parallelism, java.lang.String schema)
public <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()