GenSortRecord Class |
Namespace: Ookii.Jumbo.Jet.Samples.IO
The GenSortRecord type exposes the following members.
Name | Description | |
---|---|---|
GenSortRecord | Initializes a new instance of the GenSortRecord class |
Name | Description | |
---|---|---|
RecordBuffer |
Gets the 100 byte buffer containing the entire record.
|
Name | Description | |
---|---|---|
CompareKeys |
Compares two specified keys and returns an integer that indicates their relationship to one another in the sort order.
| |
ComparePartialKeys |
Compares two specified partial keys and returns an integer that indicates their relationship to one another in the sort order.
| |
CompareTo |
Compares this instance with a specified other GenSortRecord and returns an integer that indicates whether this
instance precedes, follows, or appears in the same position in the sort order as the specified GenSortRecord.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExtractKey |
Extracts the key from the record and converts it to a string.
| |
ExtractKeyBytes |
Extract the key from the record and copies it to a new byte array.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Read |
Reads the GenSortRecord from the specified reader.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Write |
Writes the GenSortRecord to the specified writer.
|
Name | Description | |
---|---|---|
KeySize |
The size of the key of the record, in bytes.
| |
RecordSize |
The size of each record, in bytes.
|
Records for GraySort are 100 bytes in length, of which 10 bytes are the key and the remaining 90 bytes contain the record number and some filler data. Because the GenSortRecord class is only used for sorting, it makes no attempt to parse any of the data except the key.
The records can contain either ASCII data, or arbitrary binary data.
See http://www.hpl.hp.com/hosted/sortbenchmark/ for more details.