In file Pipes.hh: A factory to create the necessary application objects
Inheritance:
Public Methods
-
virtual Mapper* createMapper(MapContext& context) const = 0
-
virtual Reducer* createReducer(ReduceContext& context) const = 0
-
virtual Reducer* createCombiner(MapContext& context) const
- Create a combiner, if this application has one.
-
virtual Partitioner* createPartitioner(MapContext& context) const
- Create an application partitioner object.
-
virtual RecordReader* createRecordReader(MapContext& context) const
- Create an application record reader.
-
virtual RecordWriter* createRecordWriter(ReduceContext& context) const
- Create an application record writer.
-
virtual ~Factory()
Documentation
A factory to create the necessary application objects
virtual Mapper* createMapper(MapContext& context) const = 0
virtual Reducer* createReducer(ReduceContext& context) const = 0
virtual Reducer* createCombiner(MapContext& context) const
-
Create a combiner, if this application has one.
- Returns:
- the new combiner or NULL, if one is not needed
virtual Partitioner* createPartitioner(MapContext& context) const
-
Create an application partitioner object.
- Returns:
- the new partitioner or NULL, if the default partitioner should be
used.
virtual RecordReader* createRecordReader(MapContext& context) const
-
Create an application record reader.
- Returns:
- the new RecordReader or NULL, if the Java RecordReader should be
used.
virtual RecordWriter* createRecordWriter(ReduceContext& context) const
-
Create an application record writer.
- Returns:
- the new RecordWriter or NULL, if the Java RecordWriter should be
used.
virtual ~Factory()
- Direct child classes:
- TemplateFactory2
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.