Click or drag to resize

HashPartitionerT Class

A partitioner based on the value returned by GetHashCode(T).
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.JetConfigurable
    Ookii.Jumbo.JetHashPartitionerT

Namespace: Ookii.Jumbo.Jet
Assembly: Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public class HashPartitioner<T> : Configurable, 
	IPartitioner<T>

Type Parameters

T
The type of the values to partition.

The HashPartitionerT type exposes the following members.

Constructors
 NameDescription
Public methodHashPartitionerTInitializes a new instance of the HashPartitionerT 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 propertyPartitions Gets or sets the number of partitions.
Public propertyTaskContext Gets or sets the configuration for the task attempt.
(Inherited from Configurable)
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetPartition Gets the partition for the specified value.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates 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 methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks

You can customize the behaviour of the HashPartitionerT by specifying a custom IEqualityComparerT. To do this, specify the type name of the custom comparer in the StageSettings of the stage that produces the records to be partitioned using the EqualityComparerSetting key.

If you don't specify a comparer, Default will be used.

See Also