MapperIK, IV, MK, MV Class

ScaleOut Software NamedCache API
Defines the signature for a mapper class, which is used to perform the map step of a MapReduce operation. A mapper ingests key-value pairs from the input named map and emits a number of intermediate key-value pairs to be processed by a combiner or reducer.
Inheritance Hierarchy

SystemObject
  Soss.Client.Concurrent.MapReduceMapperIK, IV, MK, MV

Namespace:  Soss.Client.Concurrent.MapReduce
Assembly:  soss_namedcache (in soss_namedcache.dll) Version: 6.2.0.0
Syntax

[SerializableAttribute]
public abstract class Mapper<IK, IV, MK, MV>

Type Parameters

IK
Input key type.
IV
Input value type.
MK
Map output (intermediate) key type.
MV
Map output (intermediate) value type.

The MapperIK, IV, MK, MV type exposes the following members.

Constructors

  NameDescription
Protected methodMapperIK, IV, MK, MV
Initializes a new instance of the MapperIK, IV, MK, MV class
Top
Properties

  NameDescription
Public propertyKeyOutputSerializer
Public propertyValueOutputSerializer
Top
Methods

  NameDescription
Public methodCleanup
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 methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMap
Performs the map operation for a key-value pair.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetup
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

By default, the mapper class uses the BinaryFormatter serializer for emitted intermediate keys and values, but for the best performance you may want to consider overiding the KeyOutputSerializer and ValueOutputSerializer properties and use serializers with more compact output (for example, serializers that implement the Protocol Buffers or MessagePack serialization format).

See Also

Reference