TableSchemas

Registry of TableSchema definitions addressable by key.

Implementations typically back this with a map from identifier to schema and may compute a single root table via root. The mapping is serializable via Mappable.

Functions

Link copied to clipboard
abstract fun all(): List<TableSchema>

Returns all table schemas in stable iteration order defined by the implementation.

Link copied to clipboard
abstract fun root(): TableSchema?

Returns the designated root table for this registry, if any.

Link copied to clipboard
abstract fun table(key: String?): TableSchema?

Looks up a table schema by its identifier.

Link copied to clipboard
abstract fun toJsonObject(): JsonObject

Serializes this instance to a structured JsonObject.

Link copied to clipboard
abstract fun toJsonString(): String

Serializes this instance to a compact JSON string.

Link copied to clipboard
abstract fun toMap(): MutableMap<String, Any?>

Converts this instance into a mutable key-value map suitable for mutation and re-serialization.