org.apache.hama.bsp
Class IntegerMessage
java.lang.Object
org.apache.hama.bsp.BSPMessage
org.apache.hama.bsp.IntegerMessage
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable, Messagable
public class IntegerMessage
- extends BSPMessage
A message that consists of a string tag and a int data.
Method Summary |
java.lang.Integer |
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 |
IntegerMessage
public IntegerMessage()
IntegerMessage
public IntegerMessage(java.lang.String tag,
int data)
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.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.Integer getData()
- Specified by:
getData
in class BSPMessage
- Returns:
- data of BSP message
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.