Companion

object Companion

Properties

Link copied to clipboard

The prefix of the name of an access attribute's index (accessOf).

Link copied to clipboard

The indexes of the built-in access attributes, owner and space, keyed by their paths: the events model holds them in access (a snapshot has them as columns, indexed with its scope), and a log indexes them apart from the declared ones, on the streams that have them.

Link copied to clipboard
const val KEYWORD: String

The keyword manifest-tools writes the indexes under, at the root of the state schema.

Functions

Link copied to clipboard
fun accessOf(manifest: Manifest, context: String, aggregate: String): List<QueryIndexDeclaration>

One index for each access attribute aggregate in context declares in manifest, named ACCESS_PREFIX and the attribute, keyed by its path alone (access.<name>): an access policy ORs its branches, so each attribute is indexed on its own, and a backend indexes a multiple one as it indexes many values. None when it declares none.

Link copied to clipboard
fun of(manifest: Manifest, context: String, aggregate: String): List<QueryIndexDeclaration>

The indexes the state of aggregate in context declares in manifest; none when it declares none.