T - Type of the input data.@FunctionalInterface public interface Partition<T> extends Function
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2022. All rights reserved.