T - The type of process data.P - Type of the specific operator class.public abstract class StreamProcessor<T,P extends io.ray.streaming.operator.Operator> extends Object implements Processor<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<io.ray.streaming.api.collector.Collector> |
collectors |
protected P |
operator |
protected io.ray.streaming.api.context.RuntimeContext |
runtimeContext |
| 构造器和说明 |
|---|
StreamProcessor(P operator) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
loadCheckpoint(Serializable checkpointObject)
See
Function.loadCheckpoint(Serializable). |
void |
open(List<io.ray.streaming.api.collector.Collector> collectors,
io.ray.streaming.api.context.RuntimeContext runtimeContext) |
Serializable |
saveCheckpoint()
See
Function.saveCheckpoint(). |
String |
toString() |
protected List<io.ray.streaming.api.collector.Collector> collectors
protected io.ray.streaming.api.context.RuntimeContext runtimeContext
protected P extends io.ray.streaming.operator.Operator operator
public StreamProcessor(P operator)
public void open(List<io.ray.streaming.api.collector.Collector> collectors, io.ray.streaming.api.context.RuntimeContext runtimeContext)
public Serializable saveCheckpoint()
ProcessorFunction.saveCheckpoint().saveCheckpoint 在接口中 Processor<T>public void loadCheckpoint(Serializable checkpointObject)
ProcessorFunction.loadCheckpoint(Serializable).loadCheckpoint 在接口中 Processor<T>Copyright © 2021. All rights reserved.