SortedTreeScannerBaseTKey, TValueReadWhile(TKey, TValue, TKey, MatchFilterBaseTKey, TValue) Method

Using the provided filter, continues to advance the stream but stops short of returning the point that is equal to the provided key.

Definition

Namespace: SnapDB.Snap.Tree
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public virtual bool ReadWhile(
	TKey key,
	TValue value,
	TKey upperBounds,
	MatchFilterBase<TKey, TValue>? filter
)

Parameters

key  TKey
Where to store the key.
value  TValue
Where to store the value.
upperBounds  TKey
the test condition. Will return false if the returned point would have exceedd this value
filter  MatchFilterBaseTKey, TValue
The filter to apply to the reading.

Return Value

Boolean
Returns true if the point returned is valid; otherwise, false if: The point read is greater than or equal to upperBounds or The end of the stream is reached or The end of the current node has been reached.

See Also