AS AgentScopeAPI 手册 / API Reference

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).

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/jdbc/dialect/table/SnapshotDialect.java:35–37

snapshotCreateTableDdls

public List<String> snapshotCreateTableDdls()

返回 snapshotCreateTableDdls 结果。

DDL statements (one or more) to create the snapshots table.

返回Returns List<String>
返回列出。Returns list.
源码Source io/agentscope/extensions/jdbc/dialect/table/SnapshotDialect.java:44

snapshotUpsert

public BoundSql snapshotUpsert(String snapshotId, InputStream data)

执行 snapshotUpsert 方法。

Idempotent UPSERT for uploading a snapshot.

参数Parameters
名称Name类型Type说明Description
snapshotIdString快照标识(类型 `String`)。The snapshot id.
dataInputStream数据(类型 `InputStream`)。The data.
返回Returns BoundSql
返回BoundSql。Returns bound sql.
源码Source io/agentscope/extensions/jdbc/dialect/table/SnapshotDialect.java:54

snapshotSelect

default public BoundSql snapshotSelect(String snapshotId)
default

设置快照选择。

Single-snapshot SELECT.

参数Parameters
名称Name类型Type说明Description
snapshotIdString快照标识(类型 `String`)。The snapshot id.
返回Returns BoundSql
返回BoundSql。Returns bound sql.
源码Source io/agentscope/extensions/jdbc/dialect/table/SnapshotDialect.java:61–64

snapshotExists

default public BoundSql snapshotExists(String snapshotId)
default

设置该参数。

Snapshot existence probe.

参数Parameters
名称Name类型Type说明Description
snapshotIdString快照标识(类型 `String`)。The snapshot id.
返回Returns BoundSql
返回BoundSql。Returns bound sql.
源码Source io/agentscope/extensions/jdbc/dialect/table/SnapshotDialect.java:67–71
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.