T
- Type of the elements in the Stream being partitionedpublic class HashPartitioner<T> extends StreamPartitioner<T>
KeySelector
.Constructor and Description |
---|
HashPartitioner(org.apache.flink.api.java.functions.KeySelector<T,?> keySelector) |
Modifier and Type | Method and Description |
---|---|
StreamPartitioner<T> |
copy() |
int[] |
selectChannels(SerializationDelegate<StreamRecord<T>> record,
int numberOfOutputChannels) |
String |
toString() |
public HashPartitioner(org.apache.flink.api.java.functions.KeySelector<T,?> keySelector)
public int[] selectChannels(SerializationDelegate<StreamRecord<T>> record, int numberOfOutputChannels)
public StreamPartitioner<T> copy()
copy
in class StreamPartitioner<T>
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.