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.
Namespace: SnapDB.Snap.TreeAssembly: 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
)
Public Overridable Function ReadWhile (
key As TKey,
value As TValue,
upperBounds As TKey,
filter As MatchFilterBase(Of TKey, TValue)
) As Boolean
public:
virtual bool ReadWhile(
TKey key,
TValue value,
TKey upperBounds,
MatchFilterBase<TKey, TValue>^ filter
)
function ReadWhile(key, value, upperBounds, filter);
- 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.
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.