Package org.apache.nutch.segment
Class SegmentMerger.SegmentMergerReducer
- java.lang.Object
-
- org.apache.hadoop.mapreduce.Reducer<Text,MetaWrapper,Text,MetaWrapper>
-
- org.apache.nutch.segment.SegmentMerger.SegmentMergerReducer
-
- Enclosing class:
- SegmentMerger
public static class SegmentMerger.SegmentMergerReducer extends Reducer<Text,MetaWrapper,Text,MetaWrapper>
NOTE: in selecting the latest version we rely exclusively on the segment name (not all segment data contain time information). Therefore it is extremely important that segments be named in an increasing lexicographic order as their creation time increases.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
Reducer.Context
-
-
Constructor Summary
Constructors Constructor Description SegmentMergerReducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reduce(Text key, Iterable<MetaWrapper> values, Reducer.Context context)
void
setup(Reducer.Context context)
-
-
-
Method Detail
-
setup
public void setup(Reducer.Context context)
- Overrides:
setup
in classReducer<Text,MetaWrapper,Text,MetaWrapper>
-
reduce
public void reduce(Text key, Iterable<MetaWrapper> values, Reducer.Context context) throws IOException, InterruptedException
- Overrides:
reduce
in classReducer<Text,MetaWrapper,Text,MetaWrapper>
- Throws:
IOException
InterruptedException
-
-