org.apache.hama.bsp
Class BSPMessage

java.lang.Object
  extended by org.apache.hama.bsp.BSPMessage
All Implemented Interfaces:
org.apache.hadoop.io.Writable, Messagable
Direct Known Subclasses:
BooleanMessage, ByteMessage, DoubleMessage, IntegerDoubleMessage, IntegerMessage

public abstract class BSPMessage
extends java.lang.Object
implements Messagable, org.apache.hadoop.io.Writable

BSPMessage consists of the tag and the arbitrary amount of data to be communicated.


Constructor Summary
BSPMessage()
           
 
Method Summary
abstract  java.lang.Object getData()
           
abstract  java.lang.Object getTag()
          BSP messages are typically identified with tags.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.io.Writable
readFields, write
 

Constructor Detail

BSPMessage

public BSPMessage()
Method Detail

getTag

public abstract java.lang.Object getTag()
BSP messages are typically identified with tags. This allows to get the tag of data.

Returns:
tag of data of BSP message

getData

public abstract java.lang.Object getData()
Returns:
data of BSP message


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