cgl.imr.base.impl
Class MapperConf

java.lang.Object
  extended by cgl.imr.base.impl.MapperConf
All Implemented Interfaces:
TwisterSerializable

public class MapperConf
extends Object
implements TwisterSerializable

Configuration for Map tasks. MapTaskConf relays the information and the information about the associated data partition.


Constructor Summary
MapperConf(byte[] bytes, ClassLoader classLoader)
           
MapperConf(int taskNo)
           
MapperConf(int taskNo, DataPartition dataPartition)
           
MapperConf(int taskNo, DataPartitioner dataPartitioner, Value value)
           
MapperConf(int taskNo, Value value)
           
 
Method Summary
 void fromBytes(byte[] bytes)
          Construct the object back from a previously serialized bytes.
 byte[] getBytes()
          Serialize the object and returns the bytes.
 DataPartition getDataPartition()
           
 int getMapTaskNo()
           
 Value getValue()
           
 boolean isHasDataPartition()
           
 boolean isHasValue()
           
 void setValue(Value value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapperConf

public MapperConf(byte[] bytes,
                  ClassLoader classLoader)
           throws SerializationException
Throws:
SerializationException

MapperConf

public MapperConf(int taskNo)

MapperConf

public MapperConf(int taskNo,
                  DataPartition dataPartition)

MapperConf

public MapperConf(int taskNo,
                  DataPartitioner dataPartitioner,
                  Value value)

MapperConf

public MapperConf(int taskNo,
                  Value value)
Method Detail

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

getDataPartition

public DataPartition getDataPartition()

getMapTaskNo

public int getMapTaskNo()

getValue

public Value getValue()

isHasDataPartition

public boolean isHasDataPartition()

isHasValue

public boolean isHasValue()

setValue

public void setValue(Value value)
              throws TwisterException
Throws:
TwisterException


For comments and suggestions please send e-mail to