ReduceTaskTKey, TValue, TOutput Class |
Namespace: Ookii.Jumbo.Jet.Tasks
public abstract class ReduceTask<TKey, TValue, TOutput> : Configurable, ITask<Pair<TKey, TValue>, TOutput> where TKey : Object, IComparable<TKey>
The ReduceTaskTKey, TValue, TOutput type exposes the following members.
Name | Description | |
---|---|---|
ReduceTaskTKey, TValue, TOutput |
Initializes a new instance of the ReduceTaskTKey, TValue, TOutput class.
|
Name | Description | |
---|---|---|
DfsConfiguration |
Gets or sets the configuration used to access the Distributed File System.
(Inherited from Configurable.) | |
JetConfiguration |
Gets or sets the configuration used to access the Jet servers.
(Inherited from Configurable.) | |
TaskContext |
Gets or sets the configuration for the task attempt.
(Inherited from Configurable.) |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NotifyConfigurationChanged |
Indicates the configuration has been changed. ApplyConfiguration(Object, DfsConfiguration, JetConfiguration, TaskContext) calls this method
after setting the configuration.
(Overrides ConfigurableNotifyConfigurationChanged.) | |
Reduce |
Reduces the values for the specified key.
| |
Run |
Runs the task.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Note |
---|
This task requires that the input is sorted by key. |
Because the ReduceTaskTKey, TValue, TOutput class is a pull task, it is not recommended to use it as the receiving stage of an in-process channel.
If the reduce function could be calculated incrementally, AccumulatorTaskTKey, TValue often offers much better performance than sorting and using a reduce task.
You may specify the AllowRecordReuseAttribute attribute on classes deriving from this type only if TKey is a value type or implements ICloneable.