public class PartitionUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BYTES_PER_REDUCE_TASK |
static long |
DEFAULT_BYTES_PER_REDUCE_TASK |
static int |
DEFAULT_MAX_REDUCERS |
static String |
MAX_REDUCERS
Set an upper limit on the number of reducers the Crunch planner will set for an MR
job when it tries to determine how many reducers to use based on the input size.
|
Constructor and Description |
---|
PartitionUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> int |
getRecommendedPartitions(PCollection<T> pcollection) |
static <T> int |
getRecommendedPartitions(PCollection<T> pcollection,
org.apache.hadoop.conf.Configuration conf) |
public static final String BYTES_PER_REDUCE_TASK
public static final long DEFAULT_BYTES_PER_REDUCE_TASK
public static final String MAX_REDUCERS
public static final int DEFAULT_MAX_REDUCERS
public static <T> int getRecommendedPartitions(PCollection<T> pcollection)
public static <T> int getRecommendedPartitions(PCollection<T> pcollection, org.apache.hadoop.conf.Configuration conf)
Copyright © 2016 The Apache Software Foundation. All rights reserved.