public abstract class StreamOperator<F extends Function> extends Object implements Operator
| Modifier and Type | Field and Description |
|---|---|
protected List<Collector> |
collectorList |
protected F |
function |
protected String |
name |
protected RichFunction |
richFunction |
protected RuntimeContext |
runtimeContext |
| Modifier | Constructor and Description |
|---|---|
protected |
StreamOperator() |
protected |
StreamOperator(F function) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
collect(KeyRecord keyRecord) |
protected void |
collect(Record record) |
void |
finish() |
ChainStrategy |
getChainStrategy() |
Function |
getFunction() |
Language |
getLanguage() |
String |
getName() |
void |
loadCheckpoint(Serializable checkpointObject)
|
void |
open(List<Collector> collectorList,
RuntimeContext runtimeContext) |
Serializable |
saveCheckpoint()
|
void |
setChainStrategy(ChainStrategy chainStrategy) |
void |
setFunction(F function) |
protected final String name
protected RichFunction richFunction
protected RuntimeContext runtimeContext
protected StreamOperator()
protected StreamOperator(F function)
public void setFunction(F function)
public void open(List<Collector> collectorList, RuntimeContext runtimeContext)
public Function getFunction()
getFunction in interface Operatorpublic Language getLanguage()
getLanguage in interface Operatorprotected void collect(Record record)
protected void collect(KeyRecord keyRecord)
public Serializable saveCheckpoint()
OperatorsaveCheckpoint in interface Operatorpublic void loadCheckpoint(Serializable checkpointObject)
OperatorloadCheckpoint in interface Operatorpublic void setChainStrategy(ChainStrategy chainStrategy)
public ChainStrategy getChainStrategy()
getChainStrategy in interface OperatorCopyright © 2020. All rights reserved.