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

Inherits Org.Apache.REEF.Wake.Remote.IDataWriter.

Public Member Functions

 StreamDataWriter (Stream stream)
 Constructs the StreamDataReader More...
 
void WriteDouble (double obj)
 write double More...
 
void WriteFloat (float obj)
 write float More...
 
void WriteLong (long obj)
 write long More...
 
void WriteBoolean (bool obj)
 write boolean More...
 
void WriteInt32 (int obj)
 write integer More...
 
void WriteInt16 (short obj)
 write short More...
 
void WriteString (string obj)
 write string More...
 
void Write (byte[] buffer, int index, int count)
 write bytes to the byte array More...
 
async Task WriteDoubleAsync (double obj, CancellationToken token)
 write double asynchronously More...
 
async Task WriteFloatAsync (float obj, CancellationToken token)
 write float asynchronously More...
 
async Task WriteLongAsync (long obj, CancellationToken token)
 write long asynchronously More...
 
async Task WriteBooleanAsync (bool obj, CancellationToken token)
 write bool asynchronously More...
 
async Task WriteInt32Async (int obj, CancellationToken token)
 write integer asynchronously More...
 
async Task WriteInt16Async (short obj, CancellationToken token)
 write short asynchronously More...
 
async Task WriteStringAsync (string obj, CancellationToken token)
 write string asynchronously More...
 
async Task WriteAsync (byte[] buffer, int index, int count, CancellationToken token)
 write bytes to the byte array asynchronously More...
 

Constructor & Destructor Documentation

Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.StreamDataWriter ( Stream  stream)
inline

Constructs the StreamDataReader

Parameters
streamStream from which to read

Member Function Documentation

void Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.Write ( byte[]  buffer,
int  index,
int  count 
)
inline

write bytes to the byte array

Parameters
bufferbyte array from which to read
indexstarting index in the array
countnumber of bytes to write

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

async Task Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteAsync ( byte[]  buffer,
int  index,
int  count,
CancellationToken  token 
)
inline

write bytes to the byte array asynchronously

Parameters
bufferbyte array from which to read
indexstarting index in the array
countnumber of bytes to write
tokenCancellation token
Returns
the handler to the task

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

void Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteBoolean ( bool  obj)
inline

write boolean

Parameters
objbool to be written

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

async Task Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteBooleanAsync ( bool  obj,
CancellationToken  token 
)
inline

write bool asynchronously

Parameters
objbool to be written
tokenCancellation token
Returns
the handler to the task

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

void Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteDouble ( double  obj)
inline

write double

Parameters
objdouble to be written

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

async Task Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteDoubleAsync ( double  obj,
CancellationToken  token 
)
inline

write double asynchronously

Parameters
objdouble to be written
tokenCancellation token
Returns
the handler to the task

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

void Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteFloat ( float  obj)
inline

write float

Parameters
objfloat to be written

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

async Task Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteFloatAsync ( float  obj,
CancellationToken  token 
)
inline

write float asynchronously

Parameters
objfloat to be written
tokenCancellation token
Returns
the handler to the task

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

void Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteInt16 ( short  obj)
inline

write short

Parameters
objshort to be written

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

async Task Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteInt16Async ( short  obj,
CancellationToken  token 
)
inline

write short asynchronously

Parameters
objshort to be written
tokenCancellation token
Returns
the handler to the task

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

void Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteInt32 ( int  obj)
inline

write integer

Parameters
objint to be written

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

async Task Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteInt32Async ( int  obj,
CancellationToken  token 
)
inline

write integer asynchronously

Parameters
objinteger to be written
tokenCancellation token
Returns
the handler to the task

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

void Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteLong ( long  obj)
inline

write long

Parameters
objlong to be written

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

async Task Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteLongAsync ( long  obj,
CancellationToken  token 
)
inline

write long asynchronously

Parameters
objlong to be written
tokenCancellation token
Returns
the handler to the task

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

void Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteString ( string  obj)
inline

write string

Parameters
objstring to be written

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.

async Task Org.Apache.REEF.Wake.Remote.Impl.StreamDataWriter.WriteStringAsync ( string  obj,
CancellationToken  token 
)
inline

write string asynchronously

Parameters
objstring to be written
tokenCancellation token
Returns
the handler to the task

Implements Org.Apache.REEF.Wake.Remote.IDataWriter.


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