cgl.imr.data.file
Class FileDataPartition

java.lang.Object
  extended by cgl.imr.data.file.FileDataPartition
All Implemented Interfaces:
TwisterSerializable, DataPartition

public class FileDataPartition
extends Object
implements DataPartition

Represents a file data partition.


Field Summary
 
Fields inherited from interface cgl.imr.data.DataPartition
SPLIT
 
Constructor Summary
FileDataPartition()
           
 
Method Summary
 void addFileName(String fileName)
           
 void fromBytes(byte[] bytes)
          Construct the object back from a previously serialized bytes.
 byte[] getBytes()
          Serialize the object and returns the bytes.
 List<String> getFileNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDataPartition

public FileDataPartition()
Method Detail

addFileName

public void addFileName(String fileName)

fromBytes

public void fromBytes(byte[] bytes)
               throws SerializationException
Description copied from interface: TwisterSerializable
Construct the object back from a previously serialized bytes.

Specified by:
fromBytes in interface TwisterSerializable
Throws:
SerializationException

getBytes

public byte[] getBytes()
                throws SerializationException
Description copied from interface: TwisterSerializable
Serialize the object and returns the bytes.

Specified by:
getBytes in interface TwisterSerializable
Returns:
byte[] of serialized object.
Throws:
SerializationException

getFileNames

public List<String> getFileNames()


For comments and suggestions please send e-mail to