public class StreamingRuntimeContext extends Object implements RuntimeContext
| 限定符和类型 | 字段和说明 |
|---|---|
protected io.ray.streaming.state.backend.KeyStateBackend |
keyStateBackend
Backend for keyed state.
|
protected io.ray.streaming.state.backend.OperatorStateBackend |
operatorStateBackend
Backend for operator state.
|
| 构造器和说明 |
|---|
StreamingRuntimeContext(ExecutionVertex executionVertex,
Map<String,String> config,
int parallelism) |
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
getCheckpointId() |
Map<String,String> |
getConfig() |
Map<String,String> |
getJobConfig() |
io.ray.streaming.state.backend.KeyStateBackend |
getKeyStateBackend() |
<T> io.ray.streaming.state.keystate.state.ListState<T> |
getListState(io.ray.streaming.state.keystate.desc.ListStateDescriptor<T> stateDescriptor) |
<S,T> io.ray.streaming.state.keystate.state.MapState<S,T> |
getMapState(io.ray.streaming.state.keystate.desc.MapStateDescriptor<S,T> stateDescriptor) |
int |
getParallelism() |
int |
getTaskId() |
int |
getTaskIndex() |
<T> io.ray.streaming.state.keystate.state.ValueState<T> |
getValueState(io.ray.streaming.state.keystate.desc.ValueStateDescriptor<T> stateDescriptor) |
void |
setCheckpointId(long checkpointId) |
void |
setCurrentKey(Object key) |
void |
setKeyStateBackend(io.ray.streaming.state.backend.KeyStateBackend keyStateBackend) |
protected void |
stateSanityCheck(io.ray.streaming.state.keystate.desc.AbstractStateDescriptor stateDescriptor,
io.ray.streaming.state.backend.AbstractKeyStateBackend backend) |
protected transient io.ray.streaming.state.backend.KeyStateBackend keyStateBackend
protected transient io.ray.streaming.state.backend.OperatorStateBackend operatorStateBackend
public StreamingRuntimeContext(ExecutionVertex executionVertex, Map<String,String> config, int parallelism)
public int getTaskId()
getTaskId 在接口中 RuntimeContextpublic int getTaskIndex()
getTaskIndex 在接口中 RuntimeContextpublic int getParallelism()
getParallelism 在接口中 RuntimeContextpublic Map<String,String> getConfig()
getConfig 在接口中 RuntimeContextpublic Map<String,String> getJobConfig()
getJobConfig 在接口中 RuntimeContextpublic Long getCheckpointId()
getCheckpointId 在接口中 RuntimeContextpublic void setCheckpointId(long checkpointId)
setCheckpointId 在接口中 RuntimeContextpublic void setCurrentKey(Object key)
setCurrentKey 在接口中 RuntimeContextpublic io.ray.streaming.state.backend.KeyStateBackend getKeyStateBackend()
getKeyStateBackend 在接口中 RuntimeContextpublic void setKeyStateBackend(io.ray.streaming.state.backend.KeyStateBackend keyStateBackend)
setKeyStateBackend 在接口中 RuntimeContextpublic <T> io.ray.streaming.state.keystate.state.ValueState<T> getValueState(io.ray.streaming.state.keystate.desc.ValueStateDescriptor<T> stateDescriptor)
getValueState 在接口中 RuntimeContextpublic <T> io.ray.streaming.state.keystate.state.ListState<T> getListState(io.ray.streaming.state.keystate.desc.ListStateDescriptor<T> stateDescriptor)
getListState 在接口中 RuntimeContextpublic <S,T> io.ray.streaming.state.keystate.state.MapState<S,T> getMapState(io.ray.streaming.state.keystate.desc.MapStateDescriptor<S,T> stateDescriptor)
getMapState 在接口中 RuntimeContextprotected void stateSanityCheck(io.ray.streaming.state.keystate.desc.AbstractStateDescriptor stateDescriptor,
io.ray.streaming.state.backend.AbstractKeyStateBackend backend)
Copyright © 2021. All rights reserved.