public class SweepReducer.SweepPartition extends Object
| Constructor and Description |
|---|
SweepReducer.SweepPartition(SweepReducer.SweepPartitionId id,
org.apache.hadoop.mapreduce.Reducer.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Flushes the data into mob files and store files, and archives the small
files after they're merged.
|
void |
execute(org.apache.hadoop.io.Text fileName,
Iterable<KeyValue> values)
Merges the small mob files into bigger ones.
|
SweepReducer.SweepPartitionId |
getId() |
public SweepReducer.SweepPartition(SweepReducer.SweepPartitionId id, org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException
IOExceptionpublic SweepReducer.SweepPartitionId getId()
public void close()
throws IOException
IOExceptionpublic void execute(org.apache.hadoop.io.Text fileName,
Iterable<KeyValue> values)
throws IOException
fileName - The current mob file name.values - The collection of KeyValues in this mob file.IOExceptionCopyright © 2007–2016 Cloudera. All rights reserved.