|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp2pMapReduce.mapreduceModule.Reducer.Context
p2pMapReduce.mapreduceModule.WrappedReducer.Context
public class WrappedReducer.Context
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface p2pMapReduce.mapreduceModule.ReduceContext |
---|
ReduceContext.ValueIterator<VALUEIN> |
Field Summary | |
---|---|
protected ReduceContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT> |
reduceContext
|
Constructor Summary | |
---|---|
WrappedReducer.Context(ReduceContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT> reduceContext)
|
Method Summary | |
---|---|
java.lang.Class<? extends Reducer<?,?,?,?>> |
getCombinerClass()
Get the combiner class for the job. |
Configuration |
getConfiguration()
Return the configuration for the job. |
Counter |
getCounter(java.lang.Enum counterName)
Get the Counter for the given counterName . |
Counter |
getCounter(java.lang.String groupName,
java.lang.String counterName)
Get the Counter for the given groupName and
counterName . |
KEYIN |
getCurrentKey()
Get the current key. |
VALUEIN |
getCurrentValue()
Get the current value. |
java.lang.Class<? extends InputFormat<?,?>> |
getInputFormatClass()
Get the InputFormat class for the job. |
java.lang.String |
getJar()
Get the pathname of the job's jar. |
JobID |
getJobID()
Get the unique ID for the job. |
java.lang.String |
getJobName()
Get the user-specified job name. |
boolean |
getJobSetupCleanupNeeded()
Get whether job-setup and job-cleanup is needed for the job |
java.lang.Class<?> |
getMapOutputKeyClass()
Get the key class for the map output data. |
java.lang.Class<?> |
getMapOutputValueClass()
Get the value class for the map output data. |
java.lang.Class<? extends Mapper<?,?,?,?>> |
getMapperClass()
Get the Mapper class for the job. |
int |
getMaxMapAttempts()
Get the configured number of maximum attempts that will be made to run a map task, as specified by the mapred.map.max.attempts
property. |
int |
getMaxReduceAttempts()
Get the configured number of maximum attempts that will be made to run a reduce task, as specified by the mapred.reduce.max.attempts
property. |
int |
getNumReduceTasks()
Get configured the number of reduce tasks for this job. |
OutputCommitter |
getOutputCommitter()
Get the OutputCommitter for the task-attempt. |
java.lang.Class<? extends OutputFormat<?,?>> |
getOutputFormatClass()
Get the OutputFormat class for the job. |
java.lang.Class<?> |
getOutputKeyClass()
Get the key class for the job output data. |
java.lang.Class<?> |
getOutputValueClass()
Get the value class for job outputs. |
java.lang.Class<? extends Partitioner<?,?>> |
getPartitionerClass()
Get the Partitioner class for the job. |
boolean |
getProfileEnabled()
Get whether the task profiling is enabled. |
java.lang.String |
getProfileParams()
Get the profiler configuration arguments. |
Configuration.IntegerRanges |
getProfileTaskRange(boolean isMap)
Get the range of maps or reduces to profile. |
java.lang.Class<? extends Reducer<?,?,?,?>> |
getReducerClass()
Get the Reducer class for the job. |
RawComparator<?> |
getSortComparator()
Get the RawComparator comparator used to compare keys. |
java.lang.String |
getStatus()
Get the last set status message. |
TaskAttemptID |
getTaskAttemptID()
Get the unique name for this task attempt. |
java.lang.String |
getUser()
Get the reported username for this job. |
java.lang.Iterable<VALUEIN> |
getValues()
Iterate through the values for the current key, reusing the same value object, which is stored in the context. |
Path |
getWorkingDirectory()
Get the current working directory for the default file system. |
boolean |
nextKey()
Start processing next unique key. |
boolean |
nextKeyValue()
Advance to the next key, value pair, returning null if at end. |
void |
setStatus(java.lang.String msg)
Set the current status of the task to the given string. |
void |
write(KEYOUT key,
VALUEOUT value)
Generate an output key/value pair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ReduceContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT> reduceContext
Constructor Detail |
---|
public WrappedReducer.Context(ReduceContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT> reduceContext)
Method Detail |
---|
public KEYIN getCurrentKey() throws java.io.IOException, java.lang.InterruptedException
TaskInputOutputContext
java.io.IOException
java.lang.InterruptedException
public VALUEIN getCurrentValue() throws java.io.IOException, java.lang.InterruptedException
TaskInputOutputContext
java.io.IOException
java.lang.InterruptedException
public boolean nextKeyValue() throws java.io.IOException, java.lang.InterruptedException
TaskInputOutputContext
java.io.IOException
java.lang.InterruptedException
public Counter getCounter(java.lang.Enum counterName)
TaskInputOutputContext
Counter
for the given counterName
.
counterName
- counter name
Counter
for the given counterName
public Counter getCounter(java.lang.String groupName, java.lang.String counterName)
TaskInputOutputContext
Counter
for the given groupName
and
counterName
.
counterName
- counter name
Counter
for the given groupName
and
counterName
public OutputCommitter getOutputCommitter()
TaskInputOutputContext
OutputCommitter
for the task-attempt.
OutputCommitter
for the task-attemptpublic void write(KEYOUT key, VALUEOUT value) throws java.io.IOException, java.lang.InterruptedException
TaskInputOutputContext
java.io.IOException
java.lang.InterruptedException
public java.lang.String getStatus()
TaskAttemptContext
public TaskAttemptID getTaskAttemptID()
TaskAttemptContext
public void setStatus(java.lang.String msg)
TaskAttemptContext
public java.lang.Class<? extends Reducer<?,?,?,?>> getCombinerClass() throws java.lang.ClassNotFoundException
JobContext
java.lang.ClassNotFoundException
public Configuration getConfiguration()
JobContext
public java.lang.Class<? extends InputFormat<?,?>> getInputFormatClass() throws java.lang.ClassNotFoundException
JobContext
InputFormat
class for the job.
InputFormat
class for the job.
java.lang.ClassNotFoundException
public java.lang.String getJar()
JobContext
public JobID getJobID()
JobContext
public java.lang.String getJobName()
JobContext
public boolean getJobSetupCleanupNeeded()
JobContext
public java.lang.Class<?> getMapOutputKeyClass()
JobContext
public java.lang.Class<?> getMapOutputValueClass()
JobContext
public java.lang.Class<? extends Mapper<?,?,?,?>> getMapperClass() throws java.lang.ClassNotFoundException
JobContext
Mapper
class for the job.
Mapper
class for the job.
java.lang.ClassNotFoundException
public int getMaxMapAttempts()
JobContext
mapred.map.max.attempts
property. If this property is not already set, the default is 4 attempts.
public int getMaxReduceAttempts()
JobContext
mapred.reduce.max.attempts
property. If this property is not already set, the default is 4 attempts.
public int getNumReduceTasks()
JobContext
1
.
public java.lang.Class<? extends OutputFormat<?,?>> getOutputFormatClass() throws java.lang.ClassNotFoundException
JobContext
OutputFormat
class for the job.
OutputFormat
class for the job.
java.lang.ClassNotFoundException
public java.lang.Class<?> getOutputKeyClass()
JobContext
public java.lang.Class<?> getOutputValueClass()
JobContext
public java.lang.Class<? extends Partitioner<?,?>> getPartitionerClass() throws java.lang.ClassNotFoundException
JobContext
Partitioner
class for the job.
Partitioner
class for the job.
java.lang.ClassNotFoundException
public java.lang.Class<? extends Reducer<?,?,?,?>> getReducerClass() throws java.lang.ClassNotFoundException
JobContext
Reducer
class for the job.
Reducer
class for the job.
java.lang.ClassNotFoundException
public RawComparator<?> getSortComparator()
JobContext
RawComparator
comparator used to compare keys.
RawComparator
comparator used to compare keys.public Path getWorkingDirectory() throws java.io.IOException
JobContext
java.io.IOException
public java.lang.Iterable<VALUEIN> getValues() throws java.io.IOException, java.lang.InterruptedException
ReduceContext
java.io.IOException
java.lang.InterruptedException
public boolean nextKey() throws java.io.IOException, java.lang.InterruptedException
ReduceContext
java.io.IOException
java.lang.InterruptedException
public boolean getProfileEnabled()
JobContext
public java.lang.String getProfileParams()
JobContext
public Configuration.IntegerRanges getProfileTaskRange(boolean isMap)
JobContext
isMap
- is the task a map?
public java.lang.String getUser()
JobContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |