SortSpillRecordWriterT Class |
Namespace: Ookii.Jumbo.Jet.Channels
The SortSpillRecordWriterT type exposes the following members.
Name | Description | |
---|---|---|
SortSpillRecordWriterT |
Initializes a new instance of the SortSpillRecordWriterT class.
|
Name | Description | |
---|---|---|
BytesRead |
Gets the number of bytes read during merging.
| |
BytesWritten |
Gets the number of bytes that were actually written to the output.
(Overrides SpillRecordWriterTBytesWritten.) | |
HasFinishedWriting |
Gets a value indicating whether FinishWriting method has been called.
(Inherited from RecordWriterT.) | |
OutputBytes |
Gets the size of the written records after serialization.
(Inherited from SpillRecordWriterT.) | |
Partitioner |
Gets the partitioner.
(Inherited from SpillRecordWriterT.) | |
RecordsWritten |
Gets the total number of records written by this record writer.
(Inherited from RecordWriterT.) | |
SpillCount |
Gets the number of spills performed.
(Inherited from SpillRecordWriterT.) | |
WriteTime |
Gets the time spent writing.
(Inherited from RecordWriterT.) |
Name | Description | |
---|---|---|
Dispose |
Cleans up all resources held by this RecordWriter{T}.
(Inherited from RecordWriterT.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FinishWriting |
Informs the record writer that no further records will be written.
(Overrides SpillRecordWriterTFinishWriting.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WriteRecord |
Writes a record.
(Inherited from RecordWriterT.) | |
WriteRecords |
Writes the specified sequence of records.
(Inherited from RecordWriterT.) |
Each spill is written to its own file, and each partition is sorted using IndexedQuicksort before being spilled. When FinishWriting is called, the individual spills are merged using MergeHelperT into the final output file.
It is possible to specify a combiner task that will be run on the records of each spill after sorting. Use this to reduce the size of the output records after sorting. The combiner must be a ITaskTInput, TOutput where both the input and output record type are T. The Run(RecordReaderTInput, RecordWriterTOutput) method will be called multiple times (once for each spill), so the task must be prepared for. You can use a ReduceTaskTKey, TValue, TOutput for Map-Reduce style combining.