This project has retired. For details please refer to its Attic page.
Apache REEF: Org.Apache.REEF.Wake.StreamingCodec.CommonStreamingCodecs.FloatArrayStreamingCodec Class Reference
Apache REEF  0.15.0
Retainable Evaluator Execution Framework
Public Member Functions | List of all members
Org.Apache.REEF.Wake.StreamingCodec.CommonStreamingCodecs.FloatArrayStreamingCodec Class Reference

Streaming codec for float array More...

Inherits Org.Apache.REEF.Wake.StreamingCodec.IStreamingCodec< float[]>.

Public Member Functions

float[] Read (IDataReader reader)
 Instantiate the class from the reader. More...
 
void Write (float[] obj, IDataWriter writer)
 Writes the float array to the writer. More...
 
async Task< float[]> ReadAsync (IDataReader reader, CancellationToken token)
 Instantiate the class from the reader. More...
 
async Task WriteAsync (float[] obj, IDataWriter writer, CancellationToken token)
 Writes the float array to the writer. More...
 
- Public Member Functions inherited from Org.Apache.REEF.Wake.StreamingCodec.IStreamingCodec< float[]>
Read (IDataReader reader)
 Instantiate the class from the reader. More...
 
void Write (T obj, IDataWriter writer)
 Writes the class fields to the writer. More...
 
Task< T > ReadAsync (IDataReader reader, CancellationToken token)
 Instantiate the class from the reader. More...
 
Task WriteAsync (T obj, IDataWriter writer, CancellationToken token)
 Writes the class fields to the writer. More...
 

Detailed Description

Streaming codec for float array

Member Function Documentation

float [] Org.Apache.REEF.Wake.StreamingCodec.CommonStreamingCodecs.FloatArrayStreamingCodec.Read ( IDataReader  reader)
inline

Instantiate the class from the reader.

Parameters
readerThe reader from which to read
Returns
The float array read from the reader
async Task<float[]> Org.Apache.REEF.Wake.StreamingCodec.CommonStreamingCodecs.FloatArrayStreamingCodec.ReadAsync ( IDataReader  reader,
CancellationToken  token 
)
inline

Instantiate the class from the reader.

Parameters
readerThe reader from which to read
tokenCancellation token
Returns
The float array read from the reader
void Org.Apache.REEF.Wake.StreamingCodec.CommonStreamingCodecs.FloatArrayStreamingCodec.Write ( float[]  obj,
IDataWriter  writer 
)
inline

Writes the float array to the writer.

Parameters
objThe float array to be encoded
writerThe writer to which to write
async Task Org.Apache.REEF.Wake.StreamingCodec.CommonStreamingCodecs.FloatArrayStreamingCodec.WriteAsync ( float[]  obj,
IDataWriter  writer,
CancellationToken  token 
)
inline

Writes the float array to the writer.

Parameters
objThe float array to be encoded
writerThe writer to which to write
tokenCancellation token

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