This project has retired. For details please refer to its Attic page.
GroupingOptions (Apache Crunch 0.9.0 API)

org.apache.crunch
Class GroupingOptions

java.lang.Object
  extended by org.apache.crunch.GroupingOptions
All Implemented Interfaces:
Serializable

public class GroupingOptions
extends Object
implements Serializable

Options that can be passed to a groupByKey operation in order to exercise finer control over how the partitioning, grouping, and sorting of keys is performed.

See Also:
Serialized Form

Nested Class Summary
static class GroupingOptions.Builder
          Builder class for creating GroupingOptions instances.
 
Method Summary
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()
           
 Set<SourceTarget<?>> getSourceTargets()
           
 boolean isCompatibleWith(GroupingOptions other)
           
 boolean requireSortedKeys()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNumReducers

public int getNumReducers()

requireSortedKeys

public boolean requireSortedKeys()

getSortComparatorClass

public Class<? extends org.apache.hadoop.io.RawComparator> getSortComparatorClass()

getGroupingComparatorClass

public Class<? extends org.apache.hadoop.io.RawComparator> getGroupingComparatorClass()

getPartitionerClass

public Class<? extends org.apache.hadoop.mapreduce.Partitioner> getPartitionerClass()

getSourceTargets

public Set<SourceTarget<?>> getSourceTargets()

configure

public void configure(org.apache.hadoop.mapreduce.Job job)

isCompatibleWith

public boolean isCompatibleWith(GroupingOptions other)

builder

public static GroupingOptions.Builder builder()


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.