AccumulatorTaskTKey, TValue Class |
Namespace: Ookii.Jumbo.Jet.Tasks
public abstract class AccumulatorTask<TKey, TValue> : PushTask<Pair<TKey, TValue>, Pair<TKey, TValue>> where TKey : Object, IComparable<TKey>
The AccumulatorTaskTKey, TValue type exposes the following members.
Name | Description | |
---|---|---|
AccumulatorTaskTKey, TValue |
Initializes a new instance of the AccumulatorTaskTKey, TValue 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 | |
---|---|---|
Accumulate |
When implemented in a derived class, accumulates the values of the records.
| |
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.) | |
Finish |
Method called after the last record was processed.
(Overrides PushTaskTInput, TOutputFinish(RecordWriterTOutput).) | |
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.) | |
ProcessRecord |
Method called for each record in the task's input.
(Overrides PushTaskTInput, TOutputProcessRecord(TInput, RecordWriterTOutput).) | |
Run |
Runs the task.
(Inherited from PushTaskTInput, TOutput.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
It is safe to reuse the same PairTKey, TValue in every call to ProcessRecord(PairTKey, TValue, RecordWriterPairTKey, TValue) if the key and value are either value types or implement ICloneable. Therefore, if you specify the AllowRecordReuseAttribute on a class deriving from this class, the key and value must either be value types or implement ICloneable.
You can specify a custom key comparer using the AccumulatorTaskKeyComparerSettingKey key in the stage settings. Note that it is recommended to also use that has the comparer type for the HashPartitionerT in that case.