SnapshotQueryBackend
class SnapshotQueryBackend(val bindings: QueryBindings<AggregateType>?, prepare: (AggregateType) -> Unit = {}, indexes: (AggregateType, QueryIndexPlan) -> QueryIndexReport? = null, serves: (AggregateType) -> Boolean = { bindings != null }, store: (AggregateType) -> String? = { null })
The snapshot query backend of the node: the bindings of each aggregate type's backend and storage facts (null when no backend serves the node's snapshots), and, for a backend the host manages, how it prepares an aggregate's storage and manages its x-wow-index indexes and those of its access attributes at startup.
Constructors
Link copied to clipboard
constructor(bindings: QueryBindings<AggregateType>?, prepare: (AggregateType) -> Unit = {}, indexes: (AggregateType, QueryIndexPlan) -> QueryIndexReport? = null, serves: (AggregateType) -> Boolean = { bindings != null }, store: (AggregateType) -> String? = { null })
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Makes sure type's storage exists, so its facts are the storage's own.
Link copied to clipboard
Whether the backend queries type's snapshots: their store has a query backend.
Link copied to clipboard
The store type's snapshot queries run on, or null when the host does not know it.