table

package
v0.0.0-...-40627cf Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCrcValidation = errors.New("read block failed for crc32 is not consistent")
	ErrNoSuchKey     = errors.New("no such key")
)

Functions

This section is empty.

Types

type Table

type Table struct {
	IndexBlock *block.Block
	File       file.RandomReader
}

func New

func New(file file.RandomReader, size int) (*Table, error)

func (*Table) Get

func (t *Table) Get(key slice.Slice) (slice.Slice, error)

type Writer

type Writer interface {
	Add(k, v slice.Slice) error
	Finish() error
}

func NewWriter

func NewWriter(file file.Writer) Writer

NewWriter: create a concrete instrance for TableWriter interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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