|
8 | 8 |
|
9 | 9 | namespace Tsavorite.core
|
10 | 10 | {
|
11 |
| - internal sealed class ScanCursorState<TKey, TValue> |
12 |
| - { |
13 |
| - internal IScanIteratorFunctions<TKey, TValue> functions; |
14 |
| - internal long acceptedCount; // Number of records pushed to and accepted by the caller |
15 |
| - internal bool endBatch; // End the batch (but return a valid cursor for the next batch, as of "count" records had been returned) |
16 |
| - internal bool stop; // Stop the operation (as if all records in the db had been returned) |
17 |
| - |
18 |
| - internal void Initialize(IScanIteratorFunctions<TKey, TValue> scanIteratorFunctions) |
19 |
| - { |
20 |
| - functions = scanIteratorFunctions; |
21 |
| - acceptedCount = 0; |
22 |
| - endBatch = false; |
23 |
| - stop = false; |
24 |
| - } |
25 |
| - } |
26 |
| - |
27 | 11 | public abstract partial class AllocatorBase<TKey, TValue, TStoreFunctions, TAllocator> : IDisposable
|
28 | 12 | where TStoreFunctions : IStoreFunctions<TKey, TValue>
|
29 | 13 | where TAllocator : IAllocator<TKey, TValue, TStoreFunctions>
|
@@ -205,7 +189,8 @@ internal unsafe bool GetFromDiskAndPushToReader<TScanFunctions>(ref TKey key, re
|
205 | 189 | internal abstract bool ScanCursor<TScanFunctions>(TsavoriteKV<TKey, TValue, TStoreFunctions, TAllocator> store, ScanCursorState<TKey, TValue> scanCursorState, ref long cursor, long count, TScanFunctions scanFunctions, long endAddress, bool validateCursor)
|
206 | 190 | where TScanFunctions : IScanIteratorFunctions<TKey, TValue>;
|
207 | 191 |
|
208 |
| - private protected bool ScanLookup<TInput, TOutput, TScanFunctions, TScanIterator>(TsavoriteKV<TKey, TValue, TStoreFunctions, TAllocator> store, ScanCursorState<TKey, TValue> scanCursorState, ref long cursor, long count, TScanFunctions scanFunctions, TScanIterator iter, bool validateCursor) |
| 192 | + private protected bool ScanLookup<TInput, TOutput, TScanFunctions, TScanIterator>(TsavoriteKV<TKey, TValue, TStoreFunctions, TAllocator> store, |
| 193 | + ScanCursorState<TKey, TValue> scanCursorState, ref long cursor, long count, TScanFunctions scanFunctions, TScanIterator iter, bool validateCursor) |
209 | 194 | where TScanFunctions : IScanIteratorFunctions<TKey, TValue>
|
210 | 195 | where TScanIterator : ITsavoriteScanIterator<TKey, TValue>, IPushScanIterator<TKey>
|
211 | 196 | {
|
|
0 commit comments