Click or drag to resize

FileBackedHashSetT Class

Represents a lookup table backed by a file, with very little memory overhead.
Inheritance Hierarchy
SystemObject
  GSF.CollectionsFileBackedHashSetT

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public sealed class FileBackedHashSet<T> : ISet<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable, IDisposable
View Source

Type Parameters

T
The type of the items in the lookup table.

The FileBackedHashSetT type exposes the following members.

Constructors
 NameDescription
Public methodFileBackedHashSetT Creates a new instance of the FileBackedHashSetT class.
Public methodFileBackedHashSetT(IEnumerableT) Creates a new instance of the FileBackedHashSetT class.
Public methodFileBackedHashSetT(IEqualityComparerT) Creates a new instance of the FileBackedHashSetT class.
Public methodFileBackedHashSetT(String) Creates a new instance of the FileBackedHashSetT class.
Public methodFileBackedHashSetT(IEnumerableT, IEqualityComparerT) Creates a new instance of the FileBackedHashSetT class.
Public methodFileBackedHashSetT(String, IEnumerableT) Creates a new instance of the FileBackedHashSetT class.
Public methodFileBackedHashSetT(String, IEqualityComparerT) Creates a new instance of the FileBackedHashSetT class.
Public methodFileBackedHashSetT(String, IEnumerableT, IEqualityComparerT) Creates a new instance of the FileBackedHashSetT class.
Top
Properties
 NameDescription
Public propertyCacheSize Gets or sets the size of the cache used to store data from the file in memory.
Public propertyCount Gets the number of elements contained in the FileBackedHashSetT.
Public propertyDefaultSignature Gets the default signature used by the FileBackedHashSetT if no user-defined signature is supplied.
Public propertyFilePath Gets or sets the path to the file backing this hash set.
Public propertyFragmentationCount Gets the number of operations that fragment the lookup table that have occurred since the last time the lookup table was compacted.
Public propertyIsReadOnly Gets a value indicating whether the FileBackedHashSetT is read-only.
Public propertySignature Gets or sets the signature of the file backing the lookup table.
Top
Methods
 NameDescription
Public methodAdd Adds an element to the current set and returns a value to indicate if the element was successfully added.
Public methodClear Removes all items from the FileBackedHashSetT.
Public methodClose Closes the file backing this hash set.
Public methodCompact Defragments the item section of the hash set, which gets fragmented after removing items.
Public methodContains Determines whether the FileBackedHashSetT contains a specific value.
Public methodCopyTo Copies the elements of the FileBackedHashSetT to an Array, starting at a particular Array index.
Public methodDispose Releases all the resources used by the FileBackedHashSetT object.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExceptWith Removes all elements in the specified collection from the current set.
Public methodGetEnumerator Returns an enumerator that iterates through the collection.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIntersectWith Modifies the current set so that it contains only elements that are also in a specified collection.
Public methodIsProperSubsetOf Determines whether the current set is a proper (strict) subset of a specified collection.
Public methodIsProperSupersetOf Determines whether the current set is a proper (strict) superset of a specified collection.
Public methodIsSubsetOf Determines whether a set is a subset of a specified collection.
Public methodIsSupersetOf Determines whether the current set is a superset of a specified collection.
Public methodOpen Opens the file backing this hash set.
Public methodOpenRead Opens the file backing this hash set in read-only mode.
Public methodOverlaps Determines whether the current set overlaps with the specified collection.
Public methodRemove Removes the first occurrence of a specific object from the FileBackedHashSetT.
Public methodRemoveWhere Removes all elements that match the conditions defined by the specified predicate from a FileBackedHashSetT collection.
Public methodSetEquals Determines whether the current set and the specified collection contain the same elements.
Public methodSymmetricExceptWith 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.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUnionWith Modifies the current set so that it contains all elements that are present in either the current set or the specified collection.
Top
Extension Methods
 NameDescription
Public Extension MethodAllParallelT Determines whether all elements of a sequence satisfy a condition with each item being tested in parallel.
(Defined by CollectionExtensions)
Public Extension MethodDistinctByT, TKey Returns only the elements whose keys are distinct.
(Defined by CollectionExtensions)
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodMajorityT Returns the majority value in the collection, or default type value if no item represents the majority.
(Defined by CollectionExtensions)
Public Extension MethodMajorityT Returns the majority value in the collection, or defaultValue if no item represents the majority.
(Defined by CollectionExtensions)
Public Extension MethodMajorityByT, TKey Returns the majority value in the collection, or default type value if no item represents the majority.
(Defined by CollectionExtensions)
Public Extension MethodMajorityByT, TKey Returns the majority value in the collection, or defaultValue if no item represents the majority.
(Defined by CollectionExtensions)
Public Extension MethodMaxTReturns the largest item from the enumeration.
(Defined by CollectionExtensions)
Public Extension MethodMaxTReturns the largest item from the enumeration.
(Defined by CollectionExtensions)
Public Extension MethodMaxByT, TKeySelects the largest item from the enumeration.
(Defined by CollectionExtensions)
Public Extension MethodMedianT Gets the median item(s) from an enumeration, i.e., one return item for odd lengths, two for even lengths.
(Defined by CollectionExtensions)
Public Extension MethodMinTReturns the smallest item from the enumeration.
(Defined by CollectionExtensions)
Public Extension MethodMinTReturns the smallest item from the enumeration.
(Defined by CollectionExtensions)
Public Extension MethodMinByT, TKeySelects the smallest item from the enumeration.
(Defined by CollectionExtensions)
Public Extension MethodMinorityT Returns the minority value in the collection, or default type value if no item represents the minority.
(Defined by CollectionExtensions)
Public Extension MethodMinorityT Returns the minority value in the collection, or defaultValue if no item represents the minority.
(Defined by CollectionExtensions)
Public Extension MethodMinorityByT, TKey Returns the minority value in the collection, or default type value if no item represents the majority.
(Defined by CollectionExtensions)
Public Extension MethodMinorityByT, TKey Returns the minority value in the collection, or defaultValue if no item represents the majority.
(Defined by CollectionExtensions)
Public Extension MethodStandardDeviationT Computes the standard deviation over a sequence of Double values.
(Defined by NumericalAnalysisExtensions)
Public Extension MethodStandardDeviationT Computes the standard deviation over a sequence of Decimal values.
(Defined by NumericalAnalysisExtensions)
Public Extension MethodStandardDeviationT Computes the standard deviation over a sequence of Single values.
(Defined by NumericalAnalysisExtensions)
Public Extension MethodToDelimitedStringTConverts an enumeration to a string, using the default delimiter ("|") that can later be converted back to a list using LoadDelimitedString.
(Defined by CollectionExtensions)
Public Extension MethodToDelimitedStringTConverts an enumeration to a string that can later be converted back to a list using LoadDelimitedString.
(Defined by CollectionExtensions)
Public Extension MethodToDelimitedStringTConverts an enumeration to a string that can later be converted back to a list using LoadDelimitedString.
(Defined by CollectionExtensions)
Public Extension MethodToPagedListT Gets a PagedListT to paginate source enumeration for a given page and specified pageSize.
(Defined by CollectionExtensions)
Top
See Also