T - Type of the input data.@FunctionalInterface public interface Partition<T> extends Function
| Modifier and Type | Method and Description |
|---|---|
int[] |
partition(T record,
int numPartition)
Given a record and downstream partitions, determine which partition(s) should receive the
record.
|
loadCheckpoint, saveCheckpointint[] partition(T record, int numPartition)
record - The record.numPartition - num of partitionsCopyright © 2020. All rights reserved.