index

package
v0.0.0-...-a00a2c8 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndOfIterator = errors.New("end of iterator")

Functions

This section is empty.

Types

type Index

type Index interface {
	Add(row entity.Row) (entity.Key, error)
	Remove(key entity.Key) error
	Get(key entity.Key) (entity.Row, error)
	Iterator() Iterator
	Size() int
}

func NewScanIndex

func NewScanIndex() Index

type Iterator

type Iterator interface {
	Next() (entity.Row, error)
}

type ScanIndex

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

func (*ScanIndex) Add

func (si *ScanIndex) Add(row entity.Row) (entity.Key, error)

func (*ScanIndex) Get

func (si *ScanIndex) Get(key entity.Key) (entity.Row, error)

func (*ScanIndex) Iterator

func (si *ScanIndex) Iterator() Iterator

func (*ScanIndex) Remove

func (si *ScanIndex) Remove(key entity.Key) error

func (*ScanIndex) Size

func (si *ScanIndex) Size() int

type ScanIterator

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

func (*ScanIterator) Next

func (si *ScanIterator) Next() (entity.Row, error)

Jump to

Keyboard shortcuts

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