driver

package
v0.0.0-...-c602644 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICommitter

type ICommitter interface {
	Commit(context.Context, *openkv.WriteBatch) error
}

type IKV

type IKV interface {
	// get
	Get(key []byte) ([]byte, error)
	GetSlice(key []byte) (openkvDriver.ISlice, error)

	// just single w put/del
	Put(key []byte, value []byte) error
	Delete(key []byte) error

	// iter
	NewIterator() *openkv.Iterator

	// new WriteBatch used to batch w put/del
	NewWriteBatch() *openkv.WriteBatch

	// range iter
	RangeIterator(min []byte, max []byte, rangeType driver.RangeType) *openkv.RangeLimitIterator
	RevRangeIterator(min []byte, max []byte, rangeType driver.RangeType) *openkv.RangeLimitIterator
	RangeLimitIterator(min []byte, max []byte, rangeType driver.RangeType, offset int, count int) *openkv.RangeLimitIterator
	RevRangeLimitIterator(min []byte, max []byte, rangeType driver.RangeType, offset int, count int) *openkv.RangeLimitIterator

	// compact to gc
	Compact() error

	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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