BTreeScanner provides a fluent API for building BTree scan operations.
| 205 | |
| 206 | // BTreeScanner provides a fluent API for building BTree scan operations. |
| 207 | type BTreeScanner struct { |
| 208 | bt *BTree |
| 209 | ttlChecker *ttl.Checker |
| 210 | ds uint16 |
| 211 | |
| 212 | // scan parameters |
| 213 | direction ScanDirection |
| 214 | pivot []byte |
| 215 | prefix []byte |
| 216 | startKey []byte |
| 217 | endKey []byte |
| 218 | regex *regexp.Regexp |
| 219 | offset int |
| 220 | limit int |
| 221 | filter func(*core.Item[core.Record]) bool |
| 222 | skipTTL bool |
| 223 | } |
| 224 | |
| 225 | // newBTreeScanner creates a new BTreeScanner for the given BTree. |
| 226 | func newBTreeScanner(bt *BTree) *BTreeScanner { |
nothing calls this directly
no outgoing calls
no test coverage detected