SortedPointBufferTKey, TValue Class

A temporary point buffer that is designed to write unsorted data to it, then read the data back out sorted.

Definition

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

Type Parameters

TKey
The key type to use.
TValue
The value type to use.

Remarks

This class is not thread safe.

Constructors

SortedPointBufferTKey, TValue(Int32, ActionTKey, TKey) Creates a SortedPointBufferTKey, TValue that can hold only exactly the specified capacity using the specified duplicate handler.
SortedPointBufferTKey, TValue(Int32, Boolean) Creates a SortedPointBufferTKey, TValue that can hold only exactly the specified capacity.

Properties

Count Gets the current number of items in the buffer
Eos Boolean indicating that the end of the stream has been read or class has been disposed.
(Inherited from TreeStreamTKey, TValue)
IsAlwaysSequential Gets if the stream is always in sequential order. Do not return true unless it is guaranteed that the data read from this stream is sequential.
(Overrides TreeStreamTKey, TValueIsAlwaysSequential)
IsEmpty Gets if this buffer is empty
IsFull Gets if no more items can be added to this list. List must be cleared before any more items can be added.
IsReadingMode Gets or sets the current mode of the point buffer.
NeverContainsDuplicates Gets if the stream will never return duplicate keys. Do not return true unless it is guaranteed that the data read from this stream will never contain duplicates.
(Overrides TreeStreamTKey, TValueNeverContainsDuplicates)

Methods

Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from TreeStreamTKey, TValue)
Dispose(Boolean) Releases the unmanaged resources used by the TreeStreamTKey, TValue object and optionally releases the managed resources.
(Inherited from TreeStreamTKey, TValue)
EndOfStreamReached Overrides the default behavior that disposes the stream when the end of the stream has been encountered.
(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 Advances the stream to the next value.
(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)
TryEnqueue Attempts to enqueue the provided item to the list.

See Also