org.apache.hadoop.examples.pi
Class SummationWritable

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

public final class SummationWritable
extends Object
implements org.apache.hadoop.io.WritableComparable<SummationWritable>, Container<Summation>

A Writable class for Summation


Constructor Summary
SummationWritable()
           
 
Method Summary
 int compareTo(SummationWritable that)
          
 boolean equals(Object obj)
          
 Summation getElement()
          
 int hashCode()
          Not supported
static Summation read(Class<?> clazz, org.apache.hadoop.conf.Configuration conf)
          Read sigma from conf
 void readFields(DataInput in)
          
 String toString()
          
 void write(DataOutput out)
          
static void write(Summation sigma, Class<?> clazz, org.apache.hadoop.conf.Configuration conf)
          Write sigma to conf
static void write(Summation sigma, DataOutput out)
          Write sigma to DataOutput
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SummationWritable

public SummationWritable()
Method Detail

toString

public String toString()

Overrides:
toString in class Object

getElement

public Summation getElement()

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

read

public static Summation read(Class<?> clazz,
                             org.apache.hadoop.conf.Configuration conf)
Read sigma from conf


write

public static void write(Summation sigma,
                         Class<?> clazz,
                         org.apache.hadoop.conf.Configuration conf)
Write sigma to conf


readFields

public void readFields(DataInput in)
                throws IOException

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

write

public static void write(Summation sigma,
                         DataOutput out)
                  throws IOException
Write sigma to DataOutput

Throws:
IOException

write

public void write(DataOutput out)
           throws IOException

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

compareTo

public int compareTo(SummationWritable that)

Specified by:
compareTo in interface Comparable<SummationWritable>

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()
Not supported

Overrides:
hashCode in class Object


Copyright © 2009 The Apache Software Foundation