rangedel

package
v2.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(ik base.InternalKey, v []byte, keysDst []keyspan.Key) keyspan.Span

Decode takes an internal key pair encoding a range deletion and returns a decoded keyspan containing the key. If keysDst is provided, the key will be appended to keysDst, avoiding an allocation.

func DecodeIntoSpan

func DecodeIntoSpan(cmp base.Compare, ik base.InternalKey, v []byte, s *keyspan.Span) error

DecodeIntoSpan decodes an internal key pair encoding a range deletion and appends a key to the given span. The start and end keys must match those in the span.

func Encode

func Encode(s keyspan.Span, emit func(k base.InternalKey, v []byte) error) error

Encode takes a Span containing only range deletions. It invokes the provided closure with the encoded internal keys that represent the Span's state. The keys and values passed to emit are only valid until the closure returns. If emit returns an error, Encode stops and returns the error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL