类 BaseCheckpointSaver<V>抽象
类型参数
- V extends string | number = number
构造函数
constructor
- 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, unknown>
返回 AsyncGenerator<CheckpointTuple, any, unknown>
抽象
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<string>[]
- taskId: string
返回 Promise<void>
为通道生成下一个版本 ID。
默认使用整数版本,递增 1。如果覆盖,可以使用 str/int/float 版本,只要它们是单调递增的。