BTreeMapBaseKey, Value Class |
Namespace: VelocityDb.Collection.BTree
[SerializableAttribute] public abstract class BTreeMapBase<Key, Value> : BTreeBase<Key, Value>, IEnumerable<KeyValuePair<Key, Value>>, IEnumerable, IEnumerable<Key>
The BTreeMapBaseKey, Value type exposes the following members.
Name | Description | |
---|---|---|
Item |
Given a lookup key, returns the corresponding value within the map or null if not found
| |
TransientBatchSize |
Get/Set the max batch size used in API such as AddFast(Key) (Overrides BTreeBaseKey, ValueTransientBatchSize.) | |
ValuePlacement |
Set the value placement to be used for all value objects added to this. This setting is not persisted, it is mainly to be used with objects added with AddFast(Key, Value) | |
Values |
Gets a collection containing the values of this object
|
Name | Description | |
---|---|---|
AddFast |
Adds an element to an array of to be added objects.
The objects in this array are added when a call toFlushTransients is triggered by multiple events such as calling Count and when collection is commited and/or flushed to disk or when the array is full.
The array size is by default currently [!:BTreeBase<Key, Value>.transientBatchBufferDefaultSize] but you can get/set the desired size with TransientBatchSize | |
EnumerateValues |
Enumerates all contained Value objects in corresponding key sorted order
| |
FlushTransients |
Adds all queued up to be added objects after presorting them transiently
(Overrides BTreeBaseKey, ValueFlushTransients.) | |
GetEnumerator |
Enumerates all contained Key objects in sorted order
| |
GetValueId(Key) |
When Value type implements IOptimizedPersistable, you can use this function to get the Id of the persistent object instead of the entire object.
Use for performance reasons in certain cases where reading the object isn't desired.
| |
GetValueId(Key, Byte) |
When Value type implements IOptimizedPersistable, you can use this function to get the Id of the persistent object instead of the entire object.
Use for performance reasons in certain cases where reading the object isn't desired.
| |
Iterator |
Initializes an iterator to find the keys and values of this map
| |
Last |
Returns the last KeyValue object in this set.
| |
LastValue |
Returns the last value in this map.
| |
TryGetValue(Key, Value) |
Gets the value associated with the specified key.
| |
TryGetValue(Key, Byte, Value) |
Gets the value associated with the specified key.
|
Name | Description | |
---|---|---|
ToStringDetails(SessionBase, Boolean) | Overloaded.
Object details as a string
(Defined by Utilities.) | |
ToStringDetails(Schema, TypeVersion, Boolean) | Overloaded.
Currently only used by Database Manager
(Defined by Utilities.) |