Summer.Batch.Extra.Sort.RecordReaderBuffer< T > Class Template Reference
Comparable buffer for IRecordReader<T>. It is used by Sorter<T> when merging different files. The buffers are sorted using their next record. More...
Inheritance diagram for Summer.Batch.Extra.Sort.RecordReaderBuffer< T >:
Public Member Functions | |
RecordReaderBuffer (IRecordReader< T > reader, IComparer< T > comparer) | |
Default constructor More... | |
T | Read () |
Reads a record. More... | |
bool | HasNext () |
| |
int | CompareTo (RecordReaderBuffer< T > other) |
Compares with another buffer by comparing the next item of each buffer. More... | |
void | Dispose () |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Actually disposes the current object. More... | |
Detailed Description
Comparable buffer for IRecordReader<T>. It is used by Sorter<T> when merging different files. The buffers are sorted using their next record.
- Template Parameters
-
T the type of the records
- Type Constraints
-
T : class
Constructor & Destructor Documentation
Summer.Batch.Extra.Sort.RecordReaderBuffer< T >.RecordReaderBuffer | ( | IRecordReader< T > | reader, |
IComparer< T > | comparer | ||
) |
Default constructor
- Parameters
-
reader the reader to read from comparer the comparer for the records
Member Function Documentation
int Summer.Batch.Extra.Sort.RecordReaderBuffer< T >.CompareTo | ( | RecordReaderBuffer< T > | other | ) |
Compares with another buffer by comparing the next item of each buffer.
- Parameters
-
other another buffer
- Returns
- the comparison of the two buffers
void Summer.Batch.Extra.Sort.RecordReaderBuffer< T >.Dispose | ( | ) |
- See also
- IDisposable::Dispose
|
protectedvirtual |
Actually disposes the current object.
- Parameters
-
disposing Indicates whether the method was invoked from the IDisposable.Dispose implementation or from the finalizer
T Summer.Batch.Extra.Sort.RecordReaderBuffer< T >.Read | ( | ) |
Reads a record.
- Returns
- the next record
The documentation for this class was generated from the following file:
- Summer.Batch.Extra/Sort/RecordReaderBuffer.cs