org.apache.hama.bsp
Class ByteMessage

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

public class ByteMessage
extends BSPMessage

A message that consists of a byte tag and a byte data.


Constructor Summary
ByteMessage()
           
ByteMessage(byte[] tag, byte[] data)
           
 
Method Summary
 byte[] getData()
           
 byte[] 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

ByteMessage

public ByteMessage()

ByteMessage

public ByteMessage(byte[] tag,
                   byte[] data)
Method Detail

getTag

public byte[] 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 byte[] getData()
Specified by:
getData in class BSPMessage
Returns:
data of BSP message

readFields

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

write

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


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