cgl.imr.base
Interface TwisterSerializable

All Known Subinterfaces:
DataPartition, Key, StringPropertyList, Value
All Known Implementing Classes:
BytesValue, CombineInput, DirListRequest, DirListResponse, DoubleVectorData, EndJobRequest, FileData, FileDataPartition, IntKey, IntValue, JobConf, KeyValueMap, LongKey, MapperConf, MapperRequest, MapTaskRequest, NewJobRequest, NullValue, PubSubMessage, ReduceInput, ReducerConf, ReducerRequest, StringKey, StringPropertyListImpl, StringValue, TaskConf, TaskStatus, WorkerResponse

public interface TwisterSerializable

Interface for serializing/de-serializing serailzable objects of the framework.


Method Summary
 void fromBytes(byte[] bytes)
          Construct the object back from a previously serialized bytes.
 byte[] getBytes()
          Serialize the object and returns the bytes.
 

Method Detail

fromBytes

void fromBytes(byte[] bytes)
               throws SerializationException
Construct the object back from a previously serialized bytes.

Parameters:
bytes -
Throws:
SerializationException

getBytes

byte[] getBytes()
                throws SerializationException
Serialize the object and returns the bytes.

Returns:
byte[] of serialized object.
Throws:
SerializationException


For comments and suggestions please send e-mail to