batch

package
v0.0.0-...-3976360 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

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

func (*Batch) Append

func (b *Batch) Append(buf []byte) bool

func (*Batch) Body

func (b *Batch) Body() []byte

func (*Batch) Bytes

func (b *Batch) Bytes() []byte

func (*Batch) Clear

func (b *Batch) Clear()

func (*Batch) Count

func (b *Batch) Count() uint32

func (*Batch) Delete

func (b *Batch) Delete(key []byte)

func (*Batch) Empty

func (b *Batch) Empty() bool

func (*Batch) Err

func (b *Batch) Err() error

func (*Batch) Iterate

func (b *Batch) Iterate(it Iterator) (err error)

func (*Batch) Pin

func (b *Batch) Pin()

func (*Batch) Put

func (b *Batch) Put(key, value []byte)

func (*Batch) Reset

func (b *Batch) Reset(data []byte)

func (*Batch) Sequence

func (b *Batch) Sequence() keys.Sequence

func (*Batch) SetSequence

func (b *Batch) SetSequence(seq keys.Sequence)

func (*Batch) Size

func (b *Batch) Size() int

type Iterator

type Iterator interface {
	Add(seq keys.Sequence, kind keys.Kind, key, value []byte)
}

Jump to

Keyboard shortcuts

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