DistinctTreeStreamTKey, TValue Class

Represents a stream that filters out duplicate entries from a base TreeStreamTKey, TValue.

Definition

Namespace: SnapDB.Snap
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class DistinctTreeStream<TKey, TValue> : TreeStream<TKey, TValue>
where TKey : new(), SnapTypeBase<TKey>
where TValue : new(), SnapTypeBase<TValue>
Inheritance
Object    TreeStreamTKey, TValue    DistinctTreeStreamTKey, TValue

Type Parameters

TKey
The type of keys in the stream.
TValue
The type of values in the stream.

Constructors

DistinctTreeStreamTKey, TValue Initializes a new instance of the DistinctTreeStreamTKey, TValue class.

Properties

Eos Boolean indicating that the end of the stream has been read or class has been disposed.
(Inherited from TreeStreamTKey, TValue)
IsAlwaysSequential Gets a value indicating whether this stream is always sequential, which is true for this implementation.
(Overrides TreeStreamTKey, TValueIsAlwaysSequential)
NeverContainsDuplicates Gets a value indicating that this stream never contains duplicate items, which is true for this implementation.
(Overrides TreeStreamTKey, TValueNeverContainsDuplicates)

Methods

Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from TreeStreamTKey, TValue)
Dispose(Boolean) Disposes of managed resources used by this stream.
(Overrides TreeStreamTKey, TValueDispose(Boolean))
EndOfStreamReached Callback method invoked when the end of the stream is reached.
(Overrides TreeStreamTKey, TValueEndOfStreamReached)
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)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Read Advances the stream to the next value. If before the beginning of the stream, advances to the first value
(Inherited from TreeStreamTKey, TValue)
ReadAsync Advances the stream to the next value. If before the beginning of the stream, advances to the first value
(Inherited from TreeStreamTKey, TValue)
ReadNext Reads the next key-value pair from the stream and handles duplicates.
(Overrides TreeStreamTKey, TValueReadNext(TKey, TValue))
SetEos Sets the end-of-stream (EOS) flag, indicating whether the stream has reached its end.
(Inherited from TreeStreamTKey, TValue)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also