FileBackedHashSetT Class

Represents a lookup table 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 FileBackedHashSet<T> : ISet<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable, IDisposable
Inheritance
Object    FileBackedHashSetT
Implements
ICollectionT, IEnumerableT, ISetT, IEnumerable, IDisposable

Type Parameters

T
The type of the items in the lookup table.

Constructors

FileBackedHashSetT Creates a new instance of the FileBackedHashSetT class.
FileBackedHashSetT(IEnumerableT) Creates a new instance of the FileBackedHashSetT class.
FileBackedHashSetT(IEqualityComparerT) Creates a new instance of the FileBackedHashSetT class.
FileBackedHashSetT(String) Creates a new instance of the FileBackedHashSetT class.
FileBackedHashSetT(IEnumerableT, IEqualityComparerT) Creates a new instance of the FileBackedHashSetT class.
FileBackedHashSetT(String, IEnumerableT) Creates a new instance of the FileBackedHashSetT class.
FileBackedHashSetT(String, IEqualityComparerT) Creates a new instance of the FileBackedHashSetT class.
FileBackedHashSetT(String, IEnumerableT, IEqualityComparerT) Creates a new instance of the FileBackedHashSetT 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 FileBackedHashSetT.
DefaultSignature Gets the default signature used by the FileBackedHashSetT if no user-defined signature is supplied.
FilePath Gets or sets the path to the file backing this hash set.
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 FileBackedHashSetT is read-only.
Signature Gets or sets the signature of the file backing the lookup table.

Methods

Add Adds an element to the current set and returns a value to indicate if the element was successfully added.
Clear Removes all items from the FileBackedHashSetT.
Close Closes the file backing this hash set.
Compact Defragments the item section of the hash set, which gets fragmented after removing items.
Contains Determines whether the FileBackedHashSetT contains a specific value.
CopyTo Copies the elements of the FileBackedHashSetT to an Array, starting at a particular Array index.
Dispose Releases all the resources used by the FileBackedHashSetT object.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
ExceptWith Removes all elements in the specified collection from the current set.
GetEnumerator Returns an enumerator that iterates through the collection.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IntersectWith Modifies the current set so that it contains only elements that are also in a specified collection.
IsProperSubsetOf Determines whether the current set is a proper (strict) subset of a specified collection.
IsProperSupersetOf Determines whether the current set is a proper (strict) superset of a specified collection.
IsSubsetOf Determines whether a set is a subset of a specified collection.
IsSupersetOf Determines whether the current set is a superset of a specified collection.
Open Opens the file backing this hash set.
OpenRead Opens the file backing this hash set in read-only mode.
Overlaps Determines whether the current set overlaps with the specified collection.
Remove Removes the first occurrence of a specific object from the FileBackedHashSetT.
RemoveWhere Removes all elements that match the conditions defined by the specified predicate from a FileBackedHashSetT collection.
SetEquals Determines whether the current set and the specified collection contain the same elements.
SymmetricExceptWith Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
ToStringReturns a string that represents the current object.
(Inherited from Object)
UnionWith Modifies the current set so that it contains all elements that are present in either the current set or the specified collection.

See Also