Sorts a collection of files. Files are read as records using a IRecordReader<T>. Records can be filtered using Filter. InputFormatter allows to format the records before they are sorted. If Comparer is not set, records are copied in the order they are read, but they are still filtered or formatted.
More...
|
void | Sort () |
| Sorts files. If the files are too big to be sorted in memory, they are sorted by blocks saved on disk in temporary files, which are then merged to produce the final output file. More...
|
|
|
IList< FileInfo > | InputFiles [get, set] |
| The files to sort. More...
|
|
ICollection< IOutputFile< T > > | OutputFiles [get, set] |
| The output files. More...
|
|
IComparer< T > | Comparer [get, set] |
| The IComparer<T> used for sorting the files. More...
|
|
IFilter< T > | Filter [get, set] |
| The filter used for selecting the records. More...
|
|
IFormatter< T > | InputFormatter [get, set] |
| Formatter used while reading records. More...
|
|
ISum< T > | Sum [get, set] |
| If not null, used to sum records that are identical according to Comparer. More...
|
|
int | HeaderSize [get, set] |
| The size of the header at the begining of the file. The header is copied as is at the begining of the resulting file. More...
|
|
IRecordAccessorFactory< T > | RecordAccessorFactory [get, set] |
| Factory for creating the record readers and writers. More...
|
|
long | MaxInMemorySize [get, set] |
| The maximum size in MB of the input files for the in memory sort. If the input files are over this limit, external merge sort is used. Default is 100. More...
|
|
Sorts a collection of files. Files are read as records using a IRecordReader<T>. Records can be filtered using Filter. InputFormatter allows to format the records before they are sorted. If Comparer is not set, records are copied in the order they are read, but they are still filtered or formatted.
- Template Parameters
-
T | The type of the records to sort. |
Sorts files. If the files are too big to be sorted in memory, they are sorted by blocks saved on disk in temporary files, which are then merged to produce the final output file.
The IComparer<T> used for sorting the files.
The filter used for selecting the records.
The size of the header at the begining of the file. The header is copied as is at the begining of the resulting file.
Formatter used while reading records.
The maximum size in MB of the input files for the in memory sort. If the input files are over this limit, external merge sort is used. Default is 100.
Factory for creating the record readers and writers.
If not null, used to sum records that are identical according to Comparer.
The documentation for this class was generated from the following file:
- Summer.Batch.Extra/Sort/Sorter.cs