public abstract class StreamOperator<F extends Function> extends Object implements Operator
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<Collector> |
collectorList |
protected F |
function |
protected String |
name |
protected RichFunction |
richFunction |
protected RuntimeContext |
runtimeContext |
| 限定符 | 构造器和说明 |
|---|---|
protected |
StreamOperator() |
protected |
StreamOperator(F function) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 Operatorpublic Language getLanguage()
getLanguage 在接口中 Operatorprotected void collect(Record record)
protected void collect(KeyRecord keyRecord)
public Serializable saveCheckpoint()
OperatorsaveCheckpoint 在接口中 Operatorpublic void loadCheckpoint(Serializable checkpointObject)
OperatorloadCheckpoint 在接口中 Operatorpublic void setChainStrategy(ChainStrategy chainStrategy)
public ChainStrategy getChainStrategy()
getChainStrategy 在接口中 OperatorCopyright © 2021. All rights reserved.