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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址