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: 2.0.0
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 methodHashPartitionerT
Initializes 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 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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPartition
Gets the partition for the specified value.
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 methodToString
Returns 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