Package | Description |
---|---|
org.apache.flink.api.java | |
org.apache.flink.api.java.operators | |
org.apache.flink.api.java.utils |
Modifier and Type | Method and Description |
---|---|
PartitionOperator<T> |
DataSet.partitionByHash(int... fields)
Hash-partitions a DataSet on the specified key fields.
|
<K extends Comparable<K>> |
DataSet.partitionByHash(KeySelector<T,K> keyExtractor)
Partitions a DataSet using the specified KeySelector.
|
PartitionOperator<T> |
DataSet.partitionByHash(String... fields)
Hash-partitions a DataSet on the specified key fields.
|
PartitionOperator<T> |
DataSet.partitionByRange(int... fields)
Range-partitions a DataSet on the specified key fields.
|
<K extends Comparable<K>> |
DataSet.partitionByRange(KeySelector<T,K> keyExtractor)
Range-partitions a DataSet using the specified KeySelector.
|
PartitionOperator<T> |
DataSet.partitionByRange(String... fields)
Range-partitions a DataSet on the specified key fields.
|
<K> PartitionOperator<T> |
DataSet.partitionCustom(Partitioner<K> partitioner,
int field)
Partitions a tuple DataSet on the specified key fields using a custom partitioner.
|
<K extends Comparable<K>> |
DataSet.partitionCustom(Partitioner<K> partitioner,
KeySelector<T,K> keyExtractor)
Partitions a DataSet on the key returned by the selector, using a custom partitioner.
|
<K> PartitionOperator<T> |
DataSet.partitionCustom(Partitioner<K> partitioner,
String field)
Partitions a POJO DataSet on the specified key fields using a custom partitioner.
|
PartitionOperator<T> |
DataSet.rebalance()
Enforces a re-balancing of the DataSet, i.e., the DataSet is evenly distributed over all
parallel instances of the following task.
|
Modifier and Type | Method and Description |
---|---|
PartitionOperator<T> |
PartitionOperator.withOrders(Order... orders)
Sets the order of keys for range partitioning.
|
Modifier and Type | Method and Description |
---|---|
static <T> PartitionOperator<T> |
DataSetUtils.partitionByRange(DataSet<T> input,
DataDistribution distribution,
int... fields)
Range-partitions a DataSet on the specified tuple field positions.
|
static <T,K extends Comparable<K>> |
DataSetUtils.partitionByRange(DataSet<T> input,
DataDistribution distribution,
KeySelector<T,K> keyExtractor)
Range-partitions a DataSet using the specified key selector function.
|
static <T> PartitionOperator<T> |
DataSetUtils.partitionByRange(DataSet<T> input,
DataDistribution distribution,
String... fields)
Range-partitions a DataSet on the specified fields.
|
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.