zio.blocks.projection.ProjectionScope
See theProjectionScope companion trait
object ProjectionScope
Attributes
- Companion
- trait
- Source
- Projection.scala
- Graph
-
- Supertypes
- Self type
-
ProjectionScope.type
Members list
Type members
Classlikes
final case class CrossEntity(routedBy: Any => String) extends ProjectionScope
Events are grouped into shards by a key read from the event, so one shard can hold data from many entities.
Events are grouped into shards by a key read from the event, so one shard can hold data from many entities.
Value parameters
- routedBy
-
reads the shard key from an event
Attributes
- Source
- Projection.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ProjectionScopeclass Objecttrait Matchableclass AnyShow all
case object Global extends ProjectionScope
One shared store for the whole projection, kept in its own global/ folder. Used for totals and counters.
One shared store for the whole projection, kept in its own global/ folder. Used for totals and counters.
Attributes
- Source
- Projection.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait ProjectionScopeclass Objecttrait Matchableclass AnyShow all
- Self type
-
Global.type
case object PerEntity extends ProjectionScope
One row per entity ID. This is the default.
One row per entity ID. This is the default.
Attributes
- Source
- Projection.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait ProjectionScopeclass Objecttrait Matchableclass AnyShow all
- Self type
-
PerEntity.type
Inherited and Abstract types
The names of the product elements.
The name of the type.
In this article