接口 PregelInterface<Nn, Cc>

接口 PregelInterface<Nn, Cc> {
    autoValidate?: boolean;
    channels: Cc;
    checkpointer?: BaseCheckpointSaver;
    debug?: boolean;
    inputs: keyof Cc | (keyof Cc)[];
    interruptAfter?: "*" | (keyof Nn)[];
    interruptBefore?: "*" | (keyof Nn)[];
    nodes: Nn;
    outputs: keyof Cc | (keyof Cc)[];
    stepTimeout?: number;
    streamChannels?: keyof Cc | (keyof Cc)[];
    streamMode?: StreamMode;
}

类型参数

  • Nn 扩展 StrRecord<string, PregelNode>
  • Cc 扩展 StrRecord<string, BaseChannel>

实现方式

属性

autoValidate?: boolean

默认值

true
channels: Cc
checkpointer?: BaseCheckpointSaver
debug?: boolean

默认值

false
inputs: keyof Cc | (keyof Cc)[]
interruptAfter?: "*" | (keyof Nn)[]

默认值

[]
interruptBefore?: "*" | (keyof Nn)[]

默认值

[]
nodes: Nn
outputs: keyof Cc | (keyof Cc)[]
stepTimeout?: number

默认值

undefined
streamChannels?: keyof Cc | (keyof Cc)[]
streamMode?: StreamMode

默认值

"values"