Splitter

portals.application.splitter.Splitter
trait Splitter[T]

Splitter, can split atoms with filters to the corresponding paths.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def addOutput(path: Path, filter: () => T): Unit

Split to a new output.

Split to a new output.

Value parameters

filter

filter function to be applied to filter out events for the output

path

output path to be split to

Attributes

def removeOutput(path: Path): Unit

Remove an output split.

Remove an output split.

Value parameters

path

output path to be removed

Attributes

def split(atom: List[WrappedEvent[T]]): List[(Path, List[WrappedEvent[T]])]

Split an atom.

Split an atom.

Value parameters

atom

atom to be split

Attributes

Returns

list of (path, atom) pairs of the split atom