Entry

org.sigilaris.core.application.state.Entry
See theEntry companion object
final class Entry[Name <: String, K, V](val tableName: Name)(using val kCodec: ByteCodec[K], val vCodec: ByteCodec[V])

Schema entry defining a table's name and key-value types.

This is both a compile-time marker for type-level schema definitions and a runtime value that can create StateTable instances.

Each Entry requires ByteCodec instances for both key and value types.

Type parameters

K

the key type

Name

the table name (literal String type)

V

the value type

Attributes

Companion
object
Source
StateTypes.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def createTable[F[_]](prefix: ByteVector)(using monad: Monad[F], nodeStore: NodeStore[F]): StateTable[F] { type Name = Name; type K = K; type V = V; }

Create a StateTable instance at the given prefix.

Create a StateTable instance at the given prefix.

Re-exposes the codecs captured when this Entry was created, ensuring that the blueprint's codec choices are preserved across mounts regardless of what codecs are in scope at the mount call site.

Value parameters

monad

the Monad instance for F

nodeStore

the MerkleTrie node store

prefix

the byte prefix for this table

Attributes

Returns

a StateTable bound to the given prefix

Source
StateTypes.scala

Concrete fields

val tableName: Name

Attributes

Source
StateTypes.scala

Givens

Givens

given kCodec: ByteCodec[K]

Attributes

Source
StateTypes.scala
given vCodec: ByteCodec[V]

Attributes

Source
StateTypes.scala