Summer.Batch.Extra.Sort.Legacy.BlockRecordReader Class Reference

Implementation of IRecordReader<T> for block records. If record length is more than zero the blocks are fixed length record, otherwise they are variable length record and a RDW (record descriptor word) should be present. More...

Inheritance diagram for Summer.Batch.Extra.Sort.Legacy.BlockRecordReader:
Summer.Batch.Extra.Sort.IRecordReader< byte[]>

Public Member Functions

 BlockRecordReader (Stream stream, int recordLength)
 Default constructor. More...
 
byte[] Read ()
 Reads a record. More...
 
IEnumerable< byte[]> ReadHeader (int headerSize)
 Headers are not supported on block records. More...
 
void Dispose ()
 
- Public Member Functions inherited from Summer.Batch.Extra.Sort.IRecordReader< byte[]>
Read ()
 Reads a record. More...
 
IEnumerable< T > ReadHeader (int headerSize)
 Reads the header. More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Actually disposes the current object. More...
 

Detailed Description

Implementation of IRecordReader<T> for block records. If record length is more than zero the blocks are fixed length record, otherwise they are variable length record and a RDW (record descriptor word) should be present.

Constructor & Destructor Documentation

Summer.Batch.Extra.Sort.Legacy.BlockRecordReader.BlockRecordReader ( Stream  stream,
int  recordLength 
)

Default constructor.

Parameters
streamthe stream to read from
recordLengththe record length (or zero if variable length)

Member Function Documentation

void Summer.Batch.Extra.Sort.Legacy.BlockRecordReader.Dispose ( )

See also
IDisposable::Dispose
virtual void Summer.Batch.Extra.Sort.Legacy.BlockRecordReader.Dispose ( bool  disposing)
protectedvirtual

Actually disposes the current object.

Parameters
disposingIndicates whether the method was invoked from the IDisposable.Dispose implementation or from the finalizer
byte [] Summer.Batch.Extra.Sort.Legacy.BlockRecordReader.Read ( )

Reads a record.

Returns
the read record, or null if the end has been reached
IEnumerable<byte[]> Summer.Batch.Extra.Sort.Legacy.BlockRecordReader.ReadHeader ( int  headerSize)

Headers are not supported on block records.

Parameters
headerSizethe size of the header
Returns
null

The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Sort/Legacy/BlockRecordReader.cs