Click or drag to resize

SortTaskT Class

Performs an in-memory sort of its input records. The sorting algorithm used is QuickSort.
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.JetConfigurable
    Ookii.Jumbo.JetPrepartitionedPushTaskT, T
      Ookii.Jumbo.Jet.TasksSortTaskT

Namespace:  Ookii.Jumbo.Jet.Tasks
Assembly:  Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 2.0.0
Syntax
public class SortTask<T> : PrepartitionedPushTask<T, T>

Type Parameters

T
The record type.

The SortTaskT type exposes the following members.

Constructors
  NameDescription
Public methodSortTaskT
Initializes a new instance of the SortTaskT class
Top
Properties
  NameDescription
Public propertyDfsConfiguration
Gets or sets the configuration used to access the Distributed File System.
(Inherited from Configurable.)
Public propertyJetConfiguration
Gets or sets the configuration used to access the Jet servers.
(Inherited from Configurable.)
Public propertyTaskContext
Gets or sets the configuration for the task attempt.
(Inherited from Configurable.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFinish
Method called after the last record was processed.
(Overrides PrepartitionedPushTaskTInput, TOutputFinish(PrepartitionedRecordWriterTOutput).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNotifyConfigurationChanged
Indicates the configuration has been changed. ApplyConfiguration(Object, DfsConfiguration, JetConfiguration, TaskContext) calls this method after setting the configuration.
(Overrides ConfigurableNotifyConfigurationChanged.)
Public methodProcessRecord
Method called for each record in the task's input.
(Overrides PrepartitionedPushTaskTInput, TOutputProcessRecord(TInput, Int32, PrepartitionedRecordWriterTOutput).)
Public methodRun
Runs the task.
(Inherited from PrepartitionedPushTaskTInput, TOutput.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
Note Note
The class that generates the input for this task (which can be either another task if a pipeline channel is used, or a RecordReaderT) may not reuse the record instances for the records.
Note Note
This task performs an in-memory sort of all records. Use it to sort small amounts of records only. For large (or unknown) numbers of records, use the file channel with SortSpill (e.g. using the SpillSortCombine(IOperationInput, Type, Type) function).
See Also