org.apache.hama.bsp
Class DoubleMessage

java.lang.Object
  extended by org.apache.hama.bsp.BSPMessage
      extended by org.apache.hama.bsp.DoubleMessage
All Implemented Interfaces:
org.apache.hadoop.io.Writable, Messagable

public class DoubleMessage
extends BSPMessage

A message that consists of a string tag and a double data.


Constructor Summary
DoubleMessage()
           
DoubleMessage(java.lang.String tag, double data)
           
 
Method Summary
 java.lang.Double getData()
           
 java.lang.String getTag()
          BSP messages are typically identified with tags.
 void readFields(java.io.DataInput in)
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleMessage

public DoubleMessage()

DoubleMessage

public DoubleMessage(java.lang.String tag,
                     double data)
Method Detail

getTag

public java.lang.String getTag()
Description copied from class: BSPMessage
BSP messages are typically identified with tags. This allows to get the tag of data.

Specified by:
getTag in class BSPMessage
Returns:
tag of data of BSP message

getData

public java.lang.Double getData()
Specified by:
getData in class BSPMessage
Returns:
data of BSP message

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Throws:
java.io.IOException

readFields

public void readFields(java.io.DataInput in)
                throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.