NamedMapTKey, TValue Methods

ScaleOut Software NamedCache API

The NamedMapTKey, TValue generic type exposes the following members.

Methods

  NameDescription
Public methodCode exampleAddOrUpdate(TKey, FuncTKey, TValue, FuncTKey, TValue, TValue)
Public methodAddOrUpdate(TKey, TValue, FuncTKey, TValue, TValue)
Public methodClear
Public methodContainsKey
Public methodContainsValue
Public methodCreateBulkLoader
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecuteCount
Public methodCode exampleExecuteParallelQuery(QueryConditionTKey, TValue)
Public methodCode exampleExecuteParallelQuery(QueryConditionTKey, TValue, TimeSpan)
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 methodGetKeysForValue
Searches for a specific value in the map and returns all keys this value is associated with.

Note: this method requires that InvocationGrid is assigned to the NamedMapTKey, TValue.

Public methodGetOrAdd(TKey, FuncTKey, TValue)
Public methodGetOrAdd(TKey, TValue)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleInvokeTParam, TResult(NamedMapInvokableTKey, TValue, TParam, TResult, TParam)
Public methodCode exampleInvokeTParam, TResult(NamedMapInvokableTKey, TValue, TParam, TResult, TParam, TimeSpan)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPutAll
Efficiently puts contents of the specified map into the named map. This method should be preferred to TryAdd(TKey, TValue) when updating the map with a large number of keys and values. If the named map already contains a mapping for a key, its value will be replaced with the value in the input map.
Public methodRetrieveAllKeys
Public methodCode exampleRunMapReduceMK, MV, OK, OV(NamedMapOK, OV, MapperTKey, TValue, MK, MV, CombinerMK, MV, ReducerMK, MV, OK, OV, TimeSpan)
Provides a simple and fast way to perform a MapReduce operation that does not require Hadoop infrastructure.
Public methodStatic memberCode exampleRunMapReduceMK, MV, OK, OV(NamedMapTKey, TValue, NamedMapOK, OV, MapperTKey, TValue, MK, MV, CombinerMK, MV, ReducerMK, MV, OK, OV, TimeSpan)
Provides a simple and fast way to perform a MapReduce operation that does not require Hadoop infrastructure.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryAdd
Public methodTryGetValue
Public methodTryRemove(TKey)
Public methodCode exampleTryRemove(TKey, RemoveBehavior, TValue)
Attempts to remove and return the value with the specified key from the NamedMapTKey, TValue. If the parameter is set to the RemoveBehaviorOptions.DoNotReturnValue, the value is removed and is not returned via the value parameter to optimize the method call performance.
Public methodTryUpdate(TKey, TValue)
Updates the key with a newValue value.
Public methodTryUpdate(TKey, TValue, TValue)
Compares the existing value for the specified key with a specified value, and if they are equal, updates the key with a third value.
Top
See Also

Reference