db

package module
v0.0.0-...-8661ce7 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

banyandb-research

Documentation

Index

Constants

View Source
const (
	CompressionAlgorithm_Snappy = 1
	CompressionAlgorithm_LZ4    = 2
	CompressionAlgorithm_ZSTD   = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressionAlgorithm

type CompressionAlgorithm int32

type DB

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

func NewDB

func NewDB(blockSize int, algorithm CompressionAlgorithm) DB

func (*DB) Close

func (db *DB) Close()

func (*DB) Read

func (db *DB) Read(prefix string, keyOnly bool, extractor ValueExtractor)

func (*DB) Write

func (db *DB) Write(key, val []byte)

type ValueExtractor

type ValueExtractor func(key, val []byte)

Jump to

Keyboard shortcuts

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