This project has retired. For details please refer to its
Attic page .
GoraReducer (Apache Gora 0.2 API)
org.apache.gora.mapreduce
Class GoraReducer<K1,V1,K2,V2 extends Persistent >
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<K1,V1,K2,V2>
org.apache.gora.mapreduce.GoraReducer<K1,V1,K2,V2>
Direct Known Subclasses: LogAnalytics.LogAnalyticsReducer , WordCount.WordCountReducer
public class GoraReducer<K1,V1,K2,V2 extends Persistent > extends org.apache.hadoop.mapreduce.Reducer<K1,V1,K2,V2>
Base class for Gora based Reducer
s.
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
Method Summary
static
initReducerJob (org.apache.hadoop.mapreduce.Job job,
Class <? extends DataStore <K2,V2>> dataStoreClass,
Class <K2> keyClass,
Class <V2> persistentClass,
Class <? extends GoraReducer <K1,V1,K2,V2>> reducerClass,
boolean reuseObjects)
Initializes the Reducer, and sets output parameters for the job.
static
initReducerJob (org.apache.hadoop.mapreduce.Job job,
DataStore <K2,V2> dataStore,
Class <? extends GoraReducer <K1,V1,K2,V2>> reducerClass)
Initializes the Reducer, and sets output parameters for the job.
static
initReducerJob (org.apache.hadoop.mapreduce.Job job,
DataStore <K2,V2> dataStore,
Class <? extends GoraReducer <K1,V1,K2,V2>> reducerClass,
boolean reuseObjects)
Initializes the Reducer, and sets output parameters for the job.
Methods inherited from class org.apache.hadoop.mapreduce.Reducer
cleanup, reduce, run, setup
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
GoraReducer
public GoraReducer ()
initReducerJob
public static <K1,V1,K2,V2 extends Persistent > void initReducerJob (org.apache.hadoop.mapreduce.Job job,
Class <? extends DataStore <K2,V2>> dataStoreClass,
Class <K2> keyClass,
Class <V2> persistentClass,
Class <? extends GoraReducer <K1,V1,K2,V2>> reducerClass,
boolean reuseObjects)
Initializes the Reducer, and sets output parameters for the job.
Parameters: job
- the job to set the properties fordataStoreClass
- the datastore classkeyClass
- output key classpersistentClass
- output value classreducerClass
- the reducer class extending GoraReducerreuseObjects
- whether to reuse objects in serialization
initReducerJob
public static <K1,V1,K2,V2 extends Persistent > void initReducerJob (org.apache.hadoop.mapreduce.Job job,
DataStore <K2,V2> dataStore,
Class <? extends GoraReducer <K1,V1,K2,V2>> reducerClass)
Initializes the Reducer, and sets output parameters for the job.
Parameters: job
- the job to set the properties fordataStore
- the datastore as the outputreducerClass
- the reducer class extending GoraReducer
initReducerJob
public static <K1,V1,K2,V2 extends Persistent > void initReducerJob (org.apache.hadoop.mapreduce.Job job,
DataStore <K2,V2> dataStore,
Class <? extends GoraReducer <K1,V1,K2,V2>> reducerClass,
boolean reuseObjects)
Initializes the Reducer, and sets output parameters for the job.
Parameters: job
- the job to set the properties fordataStore
- the datastore as the outputreducerClass
- the reducer class extending GoraReducerreuseObjects
- whether to reuse objects in serialization
Copyright © 2010-2013 The Apache Software Foundation . All Rights Reserved.