Click or drag to resize

GenSortRecord Class

Represents a record created by the gensort program as provided for the GraySort benchmark.
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.Jet.Samples.IOGenSortRecord

Namespace:  Ookii.Jumbo.Jet.Samples.IO
Assembly:  Ookii.Jumbo.Jet.Samples (in Ookii.Jumbo.Jet.Samples.dll) Version: 2.0.0
Syntax
public sealed class GenSortRecord : IWritable, 
	IComparable<GenSortRecord>

The GenSortRecord type exposes the following members.

Constructors
  NameDescription
Public methodGenSortRecord
Initializes a new instance of the GenSortRecord class
Top
Properties
  NameDescription
Public propertyRecordBuffer
Gets the 100 byte buffer containing the entire record.
Top
Methods
  NameDescription
Public methodStatic memberCompareKeys
Compares two specified keys and returns an integer that indicates their relationship to one another in the sort order.
Public methodStatic memberComparePartialKeys
Compares two specified partial keys and returns an integer that indicates their relationship to one another in the sort order.
Public methodCompareTo
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.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExtractKey
Extracts the key from the record and converts it to a string.
Public methodExtractKeyBytes
Extract the key from the record and copies it to a new byte array.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRead
Reads the GenSortRecord from the specified reader.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite
Writes the GenSortRecord to the specified writer.
Top
Fields
  NameDescription
Public fieldStatic memberKeySize
The size of the key of the record, in bytes.
Public fieldStatic memberRecordSize
The size of each record, in bytes.
Top
Remarks

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.

See Also