Partition messages by applying group by function first.
For example:
caseclass People(name: String, gender: String)
object Test{
val groupBy: (People =>String) = people => people.gender
val partitioner = GroupByPartitioner(groupBy)
}
Linear Supertypes
UnicastPartitioner, Partitioner, Serializable, Serializable, AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
GroupByPartitioner
UnicastPartitioner
Partitioner
Serializable
Serializable
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
newGroupByPartitioner(groupBy: (T) ⇒ GROUP = null)
groupBy
First apply message with groupBy function, then pick the hashCode of the output
to do the partitioning. You must define hashCode() for output type of groupBy function.
Partition messages by applying group by function first.
For example: