SortedTreeEngineReaderBaseExtensionMethodsReadSingleValueTKey, TValue Method

Reads a single value from the sorted tree based on the provided timestamp and point ID.

Definition

Namespace: SnapDB.Snap.Services.Reader
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public static TreeStream<TKey, TValue> ReadSingleValue<TKey, TValue>(
	this IDatabaseReader<TKey, TValue> reader,
	ulong timestamp,
	ulong pointId
)
where TKey : new(), TimestampPointIDBase<TKey>
where TValue : new(), SnapTypeBase<TValue>

Parameters

reader  IDatabaseReaderTKey, TValue
The database reader.
timestamp  UInt64
The timestamp for the desired value.
pointId  UInt64
The point ID for the desired value.

Type Parameters

TKey
The type of keys in the sorted tree.
TValue
The type of values in the sorted tree.

Return Value

TreeStreamTKey, TValue
A TreeStreamTKey, TValue containing the single value found.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDatabaseReaderTKey, TValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also