sstable

package
v0.0.0-...-070364d Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIndexNotProvided = errors.New("index not provided")

Functions

func MergeSSTables

func MergeSSTables(sstableWriter io.Writer, a, b keyvalue.KeyValueIterator,
	members *segmentmembers.SegmentMembers) (index.OffsetMap, error)

func NewSSTableIterator

func NewSSTableIterator(segmentFile *os.File, index *index.Index) keyvalue.SubIterator

Types

type SSTableReader

type SSTableReader struct {
	// contains filtered or unexported fields
}

func NewSSTableReader

func NewSSTableReader(reader io.Reader) *SSTableReader

func (*SSTableReader) Next

type SSTableSeeker

type SSTableSeeker struct {
	// contains filtered or unexported fields
}

func NewSSTableSeeker

func NewSSTableSeeker(reader io.ReadSeeker) *SSTableSeeker

func (*SSTableSeeker) ReadAt

func (r *SSTableSeeker) ReadAt(offset uint64) (keyvalue.IteratorEntry, error)

type SSTableWriter

type SSTableWriter struct {
	// contains filtered or unexported fields
}

func NewSSTableWriter

func NewSSTableWriter(writer io.Writer) *SSTableWriter

func (*SSTableWriter) Write

func (w *SSTableWriter) Write(entry keyvalue.IteratorEntry) (uint32, error)

func (*SSTableWriter) WriteFromIterator

func (w *SSTableWriter) WriteFromIterator(iterator keyvalue.KeyValueIterator) error

func (*SSTableWriter) WriteFromIteratorUntil

func (w *SSTableWriter) WriteFromIteratorUntil(iterator keyvalue.KeyValueIterator, maxSize uint64) error

func (*SSTableWriter) WrittenOffsets

func (w *SSTableWriter) WrittenOffsets() index.OffsetMap

Jump to

Keyboard shortcuts

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