Mylsm.Bytes.snapshot.scan_prefix: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm Lines 980-992 of mylsm-lsm-store@0.6.0.1/mylsm.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&start_line=980&end_line=992 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as PackedBytes import mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend as OwnerClient import mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend as OwnerByteClient def Bytes.snapshot.scan_prefix( snapshot: Bytes.Snapshot, prefix: PackedBytes.Bytes ) -> IO(Bytes.Snapshot & Result<&1, &1, Bytes.Error, Bytes.Cursor>): match snapshot: case ByteSnapshot{entries}: IO.pure(Bytes.Snapshot & Result<&1, &1, Bytes.Error, Bytes.Cursor>, Bytes.snapshot.scan_prefix.local(snapshot, prefix)) case RemoteByteSnapshot{session, +snapshot_id}: do IO>: pair : OwnerClient.Session & Result<&1, &1, OwnerClient.Error, U32> <- OwnerByteClient.snapshot.cursor.open.prefix(session, snapshot_id, prefix) return Bytes.snapshot.cursor.remote(snapshot_id, pair) Uses (15): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Cursor https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Snapshot https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.snapshot.cursor.remote https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.snapshot.scan_prefix.local https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend&name=snapshot.cursor.open.prefix https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend&name=Session