toNamedAggregate

Converts this string into a MaterializedNamedAggregate.

This extension function parses a string representation of a named aggregate. If the string contains the delimiter, it splits into context and aggregate names. Otherwise, it uses the provided contextName parameter to create the aggregate.

Return

A MaterializedNamedAggregate parsed from this string.

Parameters

contextName

The context name to use if the string doesn't contain the delimiter. Must not be null or empty if the string is a single aggregate name.

See also

Throws

if contextName is null or empty when required.