FileBackedDictionaryTKey, TValue 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.110 -- Release Build+5f28d91246fb64a1bf6c938596f3050396eb7eba
public sealed class FileBackedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, 
	ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
	IEnumerable, IDisposable
Inheritance
Object    FileBackedDictionaryTKey, TValue
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.

Constructors

FileBackedDictionaryTKey, TValue Creates a new instance of the FileBackedDictionaryTKey, TValue class.
FileBackedDictionaryTKey, TValue(IDictionaryTKey, TValue) Creates a new instance of the FileBackedDictionaryTKey, TValue class.
FileBackedDictionaryTKey, TValue(IEqualityComparerTKey) Creates a new instance of the FileBackedDictionaryTKey, TValue class.
FileBackedDictionaryTKey, TValue(String) Creates a new instance of the FileBackedDictionaryTKey, TValue class.
FileBackedDictionaryTKey, TValue(IDictionaryTKey, TValue, IEqualityComparerTKey) Creates a new instance of the FileBackedDictionaryTKey, TValue class.
FileBackedDictionaryTKey, TValue(String, IDictionaryTKey, TValue) Creates a new instance of the FileBackedDictionaryTKey, TValue class.
FileBackedDictionaryTKey, TValue(String, IEqualityComparerTKey) Creates a new instance of the FileBackedDictionaryTKey, TValue class.
FileBackedDictionaryTKey, TValue(String, IDictionaryTKey, TValue, IEqualityComparerTKey) Creates a new instance of the FileBackedDictionaryTKey, TValue class.

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)
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.
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