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

Implementation of IRecordReader<T> for records separated by a specific separator. More...

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

Public Member Functions

 SeparatorRecordReader (Stream stream)
 Default constructor. More...
 
byte[] Read ()
 Reads a record. More...
 
IEnumerable< byte[]> ReadHeader (int headerSize)
 Reads the header. 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...
 

Properties

byte[] Separator [get, set]
 The bytes corresponding to a record separator. More...
 

Detailed Description

Implementation of IRecordReader<T> for records separated by a specific separator.

Constructor & Destructor Documentation

Summer.Batch.Extra.Sort.Legacy.SeparatorRecordReader.SeparatorRecordReader ( Stream  stream)

Default constructor.

Parameters
streamthe stream to read from

Member Function Documentation

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

See also
IDisposable::Dispose
virtual void Summer.Batch.Extra.Sort.Legacy.SeparatorRecordReader.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.SeparatorRecordReader.Read ( )

Reads a record.

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

Reads the header.

Parameters
headerSizethe size of the header
Returns
the header as a list of records

Property Documentation

byte [] Summer.Batch.Extra.Sort.Legacy.SeparatorRecordReader.Separator
getset

The bytes corresponding to a record separator.


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