- Paritioner - How to partition state.
Collection<Partition<T>> definePartitions(Collection<Partition<T>> partitions, PartitioningContext context);
void partitioned(Map<Integer, Partition<T>> partitions);
- StatsListener - When to trigger partition.
Response processStats(BatchedOperatorStats stats);
- StreamCodec - How data is distributed.
Object fromByteArray(Slice fragment);
Slice toByteArray(T o);
int getPartition(T o);
- PartitionKeys - What each partition accepts.
public final int mask;
public final Set<Integer> partitions;
- Unifier - How to combine output results from multiple partitions.