Builder
public static final class Builder
源码Source
io/agentscope/extensions/postgresql/state/PostgresAgentStateStore.java:794–826PostgresAgentStateStore的构建器。位于 io.agentscope.extensions.postgresql.state 包。核心成员包括 schemaName、tableName、createIfNotExist、build。
Builder for PostgresAgentStateStore.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder schemaName(String schemaName) | 设置模式名称。 Performs the schema name operation. |
public Builder tableName(String tableName) | 设置该配置项。 Performs the table name operation. |
public Builder createIfNotExist(boolean createIfNotExist) | 创建 `createIfNotExist`。 Creates the if not exist. |
public PostgresAgentStateStore build() | 构建并返回最终实例。 Creates and returns an instance. |
方法详情Method Detail
schemaName
public Builder schemaName(String schemaName)
设置模式名称。
Performs the schema name operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
schemaName | String | 模式名称(类型 `String`)。The schema name. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/postgresql/state/PostgresAgentStateStore.java:808–811tableName
public Builder tableName(String tableName)
设置该配置项。
Performs the table name operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
tableName | String | table 名称(类型 `String`)。The table name. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/postgresql/state/PostgresAgentStateStore.java:813–816createIfNotExist
public Builder createIfNotExist(boolean createIfNotExist)
创建 createIfNotExist。
Creates the if not exist.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createIfNotExist | boolean | 创建 If 不 Exist(类型 `boolean`)。The create if not exist. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/postgresql/state/PostgresAgentStateStore.java:818–821build
public PostgresAgentStateStore build()
构建并返回最终实例。
Creates and returns an instance.
PostgresAgentStateStore返回PostgresAgentStateStore。Returns postgres agent state store.
源码Source
io/agentscope/extensions/postgresql/state/PostgresAgentStateStore.java:823–825