类 BaseCheckpointSaver<V>抽象
类型参数
- V extends string | number = number
构造函数
构造函数
- new BaseCheckpointSaver<V>(serde?): BaseCheckpointSaver<V>
类型参数
- V extends string | number = number
属性
serde
方法
get
- get(config): Promise<undefined | Checkpoint<string, string>>
参数
- config: RunnableConfig<Record<string, any>>
返回 Promise<undefined | Checkpoint<string, string>>
getNextVersion
- getNextVersion(current, _channel): V
返回 V
抽象
getTuple
- getTuple(config): Promise<undefined | CheckpointTuple>
参数
- config: RunnableConfig<Record<string, any>>
抽象
list
- list(config, options?): AsyncGenerator<CheckpointTuple, any, any>
抽象
put
- put(config, checkpoint, metadata, newVersions): Promise<RunnableConfig<Record<string, any>>>
返回 Promise<RunnableConfig<Record<string, any>>>
抽象
putWrites
- putWrites(config, writes, taskId): Promise<void>
参数
- config: RunnableConfig<Record<string, any>>
- writes: PendingWrite[]
- taskId: string
返回 Promise<void>
为通道生成下一个版本 ID。
默认使用整数版本,每次递增 1。如果覆盖此方法,可以使用字符串/整数/浮点数版本,只要它们是单调递增的。