FileBackedDictionaryTKey, TValue, TKeyElem, TValueElem Class

Represents a lookup table of key/value pairs backed by a file, with very little memory overhead.

Definition

Namespace: Gemstone.IO.Collections
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.128 -- Release Build+2960d3f3619fdc53cad514a51817286dcfb19027
public class FileBackedDictionary<TKey, TValue, TKeyElem, TValueElem> : IDictionary<TKey, TValue>, 
	ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
	IEnumerable, IDisposable
Inheritance
Object    FileBackedDictionaryTKey, TValue, TKeyElem, TValueElem
Derived
Implements
ICollectionKeyValuePairTKey, TValue, IDictionaryTKey, TValue, IEnumerableKeyValuePairTKey, TValue, IEnumerable, IDisposable

Type Parameters

TKey
The type of the keys in the lookup table.
TValue
The type of the values in the lookup table.
TKeyElem
The element type of TKey when it is a IList type; otherwise, Object.
TValueElem
The element type of TValue when it is a IList type; otherwise, Object.

Constructors

Properties

CacheSize Gets or sets the size of the cache used to store data from the file in memory.
Count Gets the number of elements contained in the FileBackedDictionaryTKey, TValue.
DefaultSignature Gets the default signature used by the FileBackedDictionaryTKey, TValue if no user-defined signature is supplied.
FilePath Gets or sets the path to the file backing this dictionary.
FragmentationCount Gets the number of operations that fragment the lookup table that have occurred since the last time the lookup table was compacted.
IsReadOnly Gets a value indicating whether the FileBackedDictionaryTKey, TValue is read-only.
Item Gets or sets the element with the specified key.
Keys Gets an FileBackedDictionaryTKey, TValue containing the keys of the FileBackedDictionaryTKey, TValue.
Signature Gets or sets the signature of the file backing the lookup table.
Values Gets an FileBackedDictionaryTKey, TValue containing the values in the FileBackedDictionaryTKey, TValue.

Methods

Add(KeyValuePairTKey, TValue) Adds an item to the FileBackedDictionaryTKey, TValue.
Add(TKey, TValue) Adds an element with the provided key and value to the FileBackedDictionaryTKey, TValue.
Clear Removes all items from the FileBackedDictionaryTKey, TValue.
Close Closes the file backing this dictionary.
Compact Defragments the item section of the dictionary, which gets fragmented after removing keys or updating values.
Contains Determines whether the FileBackedDictionaryTKey, TValue contains a specific value.
ContainsKey Determines whether the FileBackedDictionaryTKey, TValue contains an element with the specified key.
CopyTo Copies the elements of the FileBackedDictionaryTKey, TValue to an Array, starting at a particular Array index.
Dispose Releases all the resources used by the FileBackedDictionaryTKey, TValue object.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows 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.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetKeys Gets an enumerable used to iterate only the keys in the dictionary.
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetValues Gets an enumerable used to iterate only the values in the dictionary.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Open Opens the file backing this dictionary.
OpenRead Opens the file backing this hash set in read-only mode.
Remove(TKey) Removes the element with the specified key from the FileBackedDictionaryTKey, TValue.
Remove(KeyValuePairTKey, TValue) Removes the first occurrence of a specific object from the FileBackedDictionaryTKey, TValue.
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetValue Gets the value associated with the specified key.

See Also