K - Type of the partition key.T - Type of the input record.public class KeyPartition<K,T> extends Object implements Partition<KeyRecord<K,T>>
| Constructor and Description |
|---|
KeyPartition() |
| Modifier and Type | Method and Description |
|---|---|
int[] |
partition(KeyRecord<K,T> keyRecord,
int numPartition)
Given a record and downstream partitions, determine which partition(s) should receive the
record.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadCheckpoint, saveCheckpointCopyright © 2020. All rights reserved.