org.apache.hama.bsp
Class IntegerDoubleMessage

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

public class IntegerDoubleMessage
extends BSPMessage

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


Constructor Summary
IntegerDoubleMessage()
           
IntegerDoubleMessage(int tag, double data)
           
 
Method Summary
 java.lang.Double getData()
           
 java.lang.Integer 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

IntegerDoubleMessage

public IntegerDoubleMessage()

IntegerDoubleMessage

public IntegerDoubleMessage(int tag,
                            double data)
Method Detail

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

getTag

public java.lang.Integer 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


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