This project has retired. For details please refer to its Attic page.
Apache REEF: Org.Apache.REEF.Wake.Remote.Impl.MultiDecoder< T > Class Template Reference
Apache REEF  0.15.0
Retainable Evaluator Execution Framework
Public Member Functions | List of all members
Org.Apache.REEF.Wake.Remote.Impl.MultiDecoder< T > Class Template Reference

Decoder using the WakeTuple protocol buffer (class name and bytes) More...

Inherits Org.Apache.REEF.Wake.Remote.IDecoder< T >.

Public Member Functions

 MultiDecoder ()
 Constructs a decoder that decodes bytes based on the class type More...
 
void Register< U > (IDecoder< U > decoder)
 Register the decoder for objects of type U More...
 
void Register< U > (IDecoder< U > decoder, string name)
 Register the decoder for objects of type U More...
 
Decode (byte[] data)
 Decodes byte array according to the underlying object type. More...
 

Detailed Description

Decoder using the WakeTuple protocol buffer (class name and bytes)

Constructor & Destructor Documentation

Constructs a decoder that decodes bytes based on the class type

Member Function Documentation

T Org.Apache.REEF.Wake.Remote.Impl.MultiDecoder< T >.Decode ( byte[]  data)
inline

Decodes byte array according to the underlying object type.

Parameters
dataThe data to decode

Implements Org.Apache.REEF.Wake.Remote.IDecoder< T >.

void Org.Apache.REEF.Wake.Remote.Impl.MultiDecoder< T >.Register< U > ( IDecoder< U >  decoder)
inline

Register the decoder for objects of type U

Template Parameters
UThe type of decoder to use when decoding objects of this type
Parameters
decoderThe decoder to use when decoding objects of this type
Type Constraints
U :T 
void Org.Apache.REEF.Wake.Remote.Impl.MultiDecoder< T >.Register< U > ( IDecoder< U >  decoder,
string  name 
)
inline

Register the decoder for objects of type U

Template Parameters
UThe type of decoder to use when decoding objects of this type
Parameters
decoderThe decoder to use when decoding objects of this type
nameThe name of the class to decode
Type Constraints
U :T 

The documentation for this class was generated from the following file: