org.apache.hadoop.examples.pi
Class TaskResult

java.lang.Object
  extended by org.apache.hadoop.examples.pi.TaskResult
All Implemented Interfaces:
Comparable<TaskResult>, Combinable<TaskResult>, Container<Summation>, org.apache.hadoop.io.Writable

public class TaskResult
extends Object
implements Container<Summation>, Combinable<TaskResult>, org.apache.hadoop.io.Writable

A class for map task results or reduce task results.


Constructor Summary
TaskResult()
           
 
Method Summary
 TaskResult combine(TaskResult that)
          Combine this with that.
 int compareTo(TaskResult that)
          
 boolean equals(Object obj)
          
 Summation getElement()
          
 int hashCode()
          Not supported
 void readFields(DataInput in)
          
 String toString()
          
static TaskResult valueOf(String s)
          Covert a String to a TaskResult
 void write(DataOutput out)
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskResult

public TaskResult()
Method Detail

getElement

public Summation getElement()

Specified by:
getElement in interface Container<Summation>
Returns:
The contained element.

compareTo

public int compareTo(TaskResult that)

Specified by:
compareTo in interface Comparable<TaskResult>

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()
Not supported

Overrides:
hashCode in class Object

combine

public TaskResult combine(TaskResult that)
Combine this with that.

Specified by:
combine in interface Combinable<TaskResult>
Parameters:
that - Another object.
Returns:
The combined object.

readFields

public void readFields(DataInput in)
                throws IOException

Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException

Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

toString

public String toString()

Overrides:
toString in class Object

valueOf

public static TaskResult valueOf(String s)
Covert a String to a TaskResult



Copyright © 2009 The Apache Software Foundation