HandlerBuilder
Says what an event of type E does to the projected type A. It is returned by Projection.on and is finished by calling one of its methods, each of which returns the Projection with the new handler added.
The methods fall into three groups:
- whole rows:
insert,delete - field changes:
aggregate,update,updateWithField,updateField - anything else:
custom
Attributes
- Source
- Projection.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Applies the same FieldUpdate every time this event arrives, whatever the event contains. Typically used for counters on a global projection.
Applies the same FieldUpdate every time this event arrives, whatever the event contains. Typically used for counters on a global projection.
Attributes
- Source
- Projection.scala
Like the single-update aggregate, applying several updates at once.
Like the single-update aggregate, applying several updates at once.
Attributes
- Source
- Projection.scala
Same as aggregate(update).
Uses any ProjectionAction that f returns, for cases the other methods do not cover, such as Upsert or Noop.
Uses any ProjectionAction that f returns, for cases the other methods do not cover, such as Upsert or Noop.
Attributes
- Source
- Projection.scala
Deletes the entity's row.
Inserts the row that f builds from the event and its context.
Sets one field to the value that f computes from the event. The field is picked with a selector such as _.email, checked at compile time, and mapped to its snake_case column name.
Sets one field to the value that f computes from the event. The field is picked with a selector such as _.email, checked at compile time, and mapped to its snake_case column name.
Attributes
- Source
- Projection.scala
Same as updateWithField(fieldName, f).
Sets the named column to the value that f computes from the event. The name is used exactly as written, so it must already be the column name.
Sets the named column to the value that f computes from the event. The name is used exactly as written, so it must already be the column name.
Attributes
- Source
- Projection.scala