public class GroupingOptions extends Object
groupByKey
operation in order to
exercise finer control over how the partitioning, grouping, and sorting of
keys is performed.Modifier and Type | Class and Description |
---|---|
static class |
GroupingOptions.Builder
Builder class for creating
GroupingOptions instances. |
Modifier and Type | Method and Description |
---|---|
static GroupingOptions.Builder |
builder() |
void |
configure(org.apache.hadoop.mapreduce.Job job) |
Class<? extends org.apache.hadoop.io.RawComparator> |
getGroupingComparatorClass() |
int |
getNumReducers() |
Class<? extends org.apache.hadoop.mapreduce.Partitioner> |
getPartitionerClass() |
Class<? extends org.apache.hadoop.io.RawComparator> |
getSortComparatorClass() |
boolean |
isCompatibleWith(GroupingOptions other) |
public int getNumReducers()
public Class<? extends org.apache.hadoop.io.RawComparator> getSortComparatorClass()
public Class<? extends org.apache.hadoop.io.RawComparator> getGroupingComparatorClass()
public Class<? extends org.apache.hadoop.mapreduce.Partitioner> getPartitionerClass()
public void configure(org.apache.hadoop.mapreduce.Job job)
public boolean isCompatibleWith(GroupingOptions other)
public static GroupingOptions.Builder builder()
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.