SnapshotDialect
public interface SnapshotDialect
源码Source
io/agentscope/extensions/jdbc/dialect/table/SnapshotDialect.java:32–72定义快照 Dialect契约的接口。位于 io.agentscope.extensions.jdbc.dialect.table 包。核心成员包括 snapshotTableName、snapshotCreateTableDdls、snapshotUpsert、snapshotSelect、snapshotExists。
Table-domain dialect interface for the snapshots table.
Stores binary workspace tar archives keyed by snapshot_id.
Method names are prefixed with snapshot to avoid collision when
the aggregate class implements multiple table-domain interfaces.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
default public String snapshotTableName()default | 返回 `snapshotTableName` 结果。 Base table name (without prefix). |
public List<String> snapshotCreateTableDdls() | 返回 `snapshotCreateTableDdls` 结果。 DDL statements (one or more) to create the snapshots table. |
public BoundSql snapshotUpsert(String snapshotId, InputStream data) | 执行 `snapshotUpsert` 方法。 Idempotent UPSERT for uploading a snapshot. |
default public BoundSql snapshotSelect(String snapshotId)default | 设置快照选择。 Single-snapshot SELECT. |
default public BoundSql snapshotExists(String snapshotId)default | 设置该参数。 Snapshot existence probe. |
方法详情Method Detail
snapshotTableName
default public String snapshotTableName()
default
返回 snapshotTableName 结果。
Base table name (without prefix).
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/jdbc/dialect/table/SnapshotDialect.java:35–37snapshotCreateTableDdls
public List<String> snapshotCreateTableDdls()
返回 snapshotCreateTableDdls 结果。
DDL statements (one or more) to create the snapshots table.
List<String>返回列出。Returns list.
源码Source
io/agentscope/extensions/jdbc/dialect/table/SnapshotDialect.java:44snapshotUpsert
public BoundSql snapshotUpsert(String snapshotId, InputStream data)
执行 snapshotUpsert 方法。
Idempotent UPSERT for uploading a snapshot.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
snapshotId | String | 快照标识(类型 `String`)。The snapshot id. |
data | InputStream | 数据(类型 `InputStream`)。The data. |
BoundSql返回BoundSql。Returns bound sql.
源码Source
io/agentscope/extensions/jdbc/dialect/table/SnapshotDialect.java:54snapshotSelect
default public BoundSql snapshotSelect(String snapshotId)
default
设置快照选择。
Single-snapshot SELECT.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
snapshotId | String | 快照标识(类型 `String`)。The snapshot id. |
BoundSql返回BoundSql。Returns bound sql.
源码Source
io/agentscope/extensions/jdbc/dialect/table/SnapshotDialect.java:61–64snapshotExists
default public BoundSql snapshotExists(String snapshotId)
default
设置该参数。
Snapshot existence probe.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
snapshotId | String | 快照标识(类型 `String`)。The snapshot id. |
BoundSql返回BoundSql。Returns bound sql.
源码Source
io/agentscope/extensions/jdbc/dialect/table/SnapshotDialect.java:67–71