QuerySchemaCatalog
The Catalog: compiles the query schema of every aggregate model this instance serves, one provider per aggregate type and model, with its compiler (by default the model sources merged, see QueryModelCompiler.of). Each storage only reports its native facts, through the storage adapter storages locates. Gateways and point reads read their schema here.
A schema follows its storage as the storage was when the schema was first compiled, and keeps it for the node's life: a change made to a store's indexes or mapping outside a deployment (an index added or dropped, a mapping or a max_result_window changed in place) is picked up when the node restarts. A schema that has not compiled yet, or whose storage does not exist yet (QueryModelSchema.provisional), is compiled again by a later read. A model without a backend, or whose backend reports an UnavailableQueryStorageAdapter, has nothing to load: its provider fails every load. Each dataset of datasets is compiled as its QueryModel.DATASET model, and again when it changes.
Constructors
Functions
The snapshot schema aggregateType's query policies are evaluated against when no backend serves its snapshot queries: compiled from its declaration over the in-memory storage's facts, so a state of it can be admitted in memory (me.ahoo.wow.query.state.SnapshotPolicyGateway) though it is never queried. It reads no storage.
The schema provider of aggregateType's model, compiled once and shared by every reader.
The current schema of aggregateType's model.