ORDictionary<TKey, TValue> Class |
Namespace: Akka.DistributedData
[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
[Missing <typeparam name="TKey"/> documentation for "T:Akka.DistributedData.ORDictionary`2"]
[Missing <typeparam name="TValue"/> documentation for "T:Akka.DistributedData.ORDictionary`2"]
The ORDictionary< TKey, TValue> type exposes the following members.
Name | Description | |
---|---|---|
ORDictionary<TKey, TValue> |
Creates a new instance of the ORDictionary< TKey, TValue> class.
|
Name | Description | |
---|---|---|
Count |
Returns number of entries stored within current ORDictionary<TKey, TValue> | |
Entries |
Returns all entries stored within current ORDictionary<TKey, TValue> | |
IsEmpty |
Determines if current ORDictionary< TKey, TValue> doesn't contain any value.
| |
Item |
Returns an element stored under provided key.
| |
Keys |
Returns all keys stored within current ORDictionary<TKey, TValue> | |
Values |
Returns all values stored within current ORDictionary<TKey, TValue> |
Name | Description | |
---|---|---|
AddOrUpdate(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.
| |
AddOrUpdate(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.
| |
ContainsKey |
Checks if provided key can be found inside current ORDictionary<TKey, TValue> | |
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides Object.Equals(Object).) | |
Equals(ORDictionary<TKey, TValue>) | Indicates whether the current object is equal to another object of the same type. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | Returns an enumerator that iterates through the collection. | |
GetHashCode | Serves as the default hash function. (Overrides Object.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Merge(IReplicatedData) | ||
Merge(ORDictionary<TKey, TValue>) | ||
NeedPruningFrom | ||
Prune | ||
PruningCleanup | ||
Remove(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.
| |
Remove(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.
| |
SetItem(Cluster, TKey, TValue) |
Adds an entry to the map.
Note that the new value will be merged with existing values
on other nodes and the outcome depends on what IReplicatedData
type that is used.
Consider using AddOrUpdate(Cluster, TKey, TValue, Func< TValue, TValue> ) instead of SetItem(Cluster, TKey, TValue) if you want modify
existing entry.
ArgumentException is thrown if you try to replace an existing ORSet< T>
value, because important history can be lost when replacing the `ORSet` and
undesired effects of merging will occur. Use ORMultiDictionary< TKey, TValue> or AddOrUpdate(Cluster, TKey, TValue, Func< TValue, TValue> ) instead.
| |
SetItem(UniqueAddress, TKey, TValue) |
Adds an entry to the map.
Note that the new value will be merged with existing values
on other nodes and the outcome depends on what IReplicatedData
type that is used.
Consider using AddOrUpdate(Cluster, TKey, TValue, Func< TValue, TValue> ) instead of SetItem(UniqueAddress, TKey, TValue) if you want modify
existing entry.
ArgumentException is thrown if you try to replace an existing ORSet< T>
value, because important history can be lost when replacing the `ORSet` and
undesired effects of merging will occur. Use ORMultiDictionary< TKey, TValue> or AddOrUpdate(Cluster, TKey, TValue, Func< TValue, TValue> ) instead.
| |
ToString | Returns a string that represents the current object. (Overrides Object.ToString().) | |
TryGetValue |
Tries to retrieve value under provided key,
returning true if value under that key has been found.
|
Name | Description | |
---|---|---|
AsInstanceOf<T> |
TBD
(Defined by Extensions.) | |
Concat<KeyValuePair<TKey, TValue>> |
TBD
(Defined by Extensions.) | |
Drop<KeyValuePair<TKey, TValue>> |
Scala alias for Skip
(Defined by Extensions.) | |
ForEach<KeyValuePair<TKey, TValue>> |
Applies a delegate action to all elements of this enumerable.
(Defined by Extensions.) | |
Grouped<KeyValuePair<TKey, TValue>> |
Partitions elements in fixed size
Credits to http://stackoverflow.com/a/13731854/465132
(Defined by EnumerableExtensions.) | |
Head<KeyValuePair<TKey, TValue>> |
Scala alias for FirstOrDefault
(Defined by Extensions.) | |
Iterator<KeyValuePair<TKey, TValue>> |
TBD
(Defined by EnumeratorExtensions.) | |
Match() | Overloaded.
Matches the specified target.
(Defined by PatternMatch.) | |
Match<T>() | Overloaded.
Matches the specified target and return a result of target processing.
(Defined by PatternMatch.) | |
ShouldBe<KeyValuePair<TKey, TValue>> |
TBD
(Defined by AkkaSpecExtensions.) | |
ShouldOnlyContainInOrder<KeyValuePair<TKey, TValue>> |
TBD
(Defined by AkkaSpecExtensions.) | |
TakeRight<KeyValuePair<TKey, TValue>> |
Selects last n elements.
(Defined by Extensions.) |