EventQueries

The events queries of one store's logs (StoreQueries.events): the binding of each aggregate type's backend over its log and, for a backend that manages the indexes of the log's access attributes, how it prepares an aggregate's log and manageIndexes them at startup: each attribute the aggregate declares and the built-in owner and space (me.ahoo.wow.query.index.QueryIndexDeclaration.BUILT_IN_ACCESS), so a query under an access policy is served by an index rather than a scan of the log.

Properties

Link copied to clipboard

Whether it manages the indexes (manageIndexes).

Functions

Link copied to clipboard

Manages plan, the indexes of type's access attributes as the core planned them on its events model, as StoreQueryOptions.indexDdl says: creates the missing ones under auto, reports them under validate.

Link copied to clipboard
open fun prepare(type: AggregateType)

Makes sure type's log exists, so that an index has a table or a collection to be on.