Package-level declarations

Types

Link copied to clipboard
data class BlockDetails(val blockIndex: BlockIndex, val latestCompletedTx: TransactionKey?, val latestProcessedMsgId: MessageId?, val boundaryReplicaMsgId: MessageId?, val termId: Long, val externalSourceToken: ExternalSourceToken?, val tableNames: List<TableRef>, val secondaryDatabases: Map<String, DatabaseConfig>)

What a block persisted to object storage carries.

Link copied to clipboard

SPI for streaming transactions into a database from an upstream feed (a CDC source, message log, etc.) instead of XTDB's own DML.

Link copied to clipboard

Opaque resume marker (e.g. a serialised log offset) that XTDB persists per tx and hands back on resume.

Link copied to clipboard
class OpenTx @JvmOverloads constructor(allocator: BufferAllocator, nodeBase: NodeBase, partitionStorage: PartitionStorage, partitionState: PartitionState, dbName: DatabaseName, val txKey: TransactionKey, val externalSourceToken: ExternalSourceToken?, tracer: Tracer? = null, resolvedTxs: List<ResolvedTx> = emptyList()) : AutoCloseable

The per-transaction write/read handle passed to an external-source writer.

Link copied to clipboard
interface TxIndexer

Per-tx entry point for external sources. The source provides tx metadata + a writer that populates the OpenTx and returns a TxResult indicating success or failure (with optional userMetadata — the source can decide metadata after writing, not before).