Click or drag to resize
Akka.NETORDictionary<TKey, TValue> Class
Implements a 'Observed Remove Map' CRDT, also called a 'OR-Map'. It has similar semantics as an ORSet<T>, but in case of concurrent updates the values are merged, and must therefore be IReplicatedData types themselves. This class is immutable, i.e. "modifying" methods return a new instance.
Inheritance Hierarchy
System.Object
  Akka.DistributedData.ORDictionary<TKey, TValue>

Namespace:  Akka.DistributedData
Assembly:  Akka.DistributedData (in Akka.DistributedData.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
[SerializableAttribute]
public class ORDictionary<TKey, TValue> : IReplicatedData<ORDictionary<TKey, TValue>>, 
	IReplicatedData, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, 
	IRemovedNodePruning<ORDictionary<TKey, TValue>>, IEquatable<ORDictionary<TKey, TValue>>, 
	IReplicatedDataSerialization
where TValue : IReplicatedData

Type Parameters

TKey

[Missing <typeparam name="TKey"/> documentation for "T:Akka.DistributedData.ORDictionary`2"]

TValue

[Missing <typeparam name="TValue"/> documentation for "T:Akka.DistributedData.ORDictionary`2"]

The ORDictionary< TKey, TValue> type exposes the following members.

Constructors
  NameDescription
Public methodORDictionary<TKey, TValue>
Creates a new instance of the ORDictionary< TKey, TValue> class.
Top
Properties
  NameDescription
Public propertyCount
Returns number of entries stored within current ORDictionary<TKey, TValue>
Public propertyEntries
Returns all entries stored within current ORDictionary<TKey, TValue>
Public propertyIsEmpty
Determines if current ORDictionary< TKey, TValue> doesn't contain any value.
Public propertyItem
Returns an element stored under provided key.
Public propertyKeys
Returns all keys stored within current ORDictionary<TKey, TValue>
Public propertyValues
Returns all values stored within current ORDictionary<TKey, TValue>
Top
Methods
  NameDescription
Public methodAddOrUpdate(Cluster, TKey, TValue, Func<TValue, TValue>)
Replace a value by applying the modify function on the existing value. If there is no current value for the key the initial value will be passed to the modify function.
Public methodAddOrUpdate(UniqueAddress, TKey, TValue, Func<TValue, TValue>)
Replace a value by applying the modify function on the existing value. If there is no current value for the key the initial value will be passed to the modify function.
Public methodContainsKey
Checks if provided key can be found inside current ORDictionary<TKey, TValue>
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides Object.Equals(Object).)
Public methodEquals(ORDictionary<TKey, TValue>)
Indicates whether the current object is equal to another object of the same type.
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 methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Overrides Object.GetHashCode().)
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 methodMerge(IReplicatedData)
Public methodMerge(ORDictionary<TKey, TValue>)
Public methodNeedPruningFrom
Public methodPrune
Public methodPruningCleanup
Public methodRemove(Cluster, TKey)
Removes an entry from the map. Note that if there is a conflicting update on another node the entry will not be removed after merge.
Public methodRemove(UniqueAddress, TKey)
Removes an entry from the map. Note that if there is a conflicting update on another node the entry will not be removed after merge.
Public methodSetItem(Cluster, TKey, TValue)
Public methodSetItem(UniqueAddress, TKey, TValue)
Public methodToString
Returns a string that represents the current object.
(Overrides Object.ToString().)
Public methodTryGetValue
Tries to retrieve value under provided key, returning true if value under that key has been found.
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
An empty instance of the ORDictionary<TKey, TValue>
Top
Extension Methods
  NameDescription
Public Extension MethodAsInstanceOf<T>
TBD
(Defined by Extensions.)
Public Extension MethodConcat<KeyValuePair<TKey, TValue>>
TBD
(Defined by Extensions.)
Public Extension MethodDrop<KeyValuePair<TKey, TValue>>
Scala alias for Skip
(Defined by Extensions.)
Public Extension MethodForEach<KeyValuePair<TKey, TValue>>
Applies a delegate action to all elements of this enumerable.
(Defined by Extensions.)
Public Extension MethodGrouped<KeyValuePair<TKey, TValue>>
Partitions elements in fixed size Credits to http://stackoverflow.com/a/13731854/465132
(Defined by EnumerableExtensions.)
Public Extension MethodHead<KeyValuePair<TKey, TValue>>
Scala alias for FirstOrDefault
(Defined by Extensions.)
Public Extension MethodIterator<KeyValuePair<TKey, TValue>>
TBD
(Defined by EnumeratorExtensions.)
Public Extension MethodMatch()Overloaded.
Matches the specified target.
(Defined by PatternMatch.)
Public Extension MethodMatch<T>()Overloaded.
Matches the specified target and return a result of target processing.
(Defined by PatternMatch.)
Public Extension MethodShouldBe<KeyValuePair<TKey, TValue>>
TBD
(Defined by AkkaSpecExtensions.)
Public Extension MethodShouldOnlyContainInOrder<KeyValuePair<TKey, TValue>>
TBD
(Defined by AkkaSpecExtensions.)
Public Extension MethodTakeRight<KeyValuePair<TKey, TValue>>
Selects last n elements.
(Defined by Extensions.)
Top
See Also