ingest

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexTable

func IndexTable(db objects.Store, tblSum []byte, tbl *objects.Table, logger logr.Logger) error

func IngestTable

func IngestTable(db objects.Store, sorter *sorter.Sorter, f io.ReadCloser, pk []string, logger logr.Logger, opts ...InserterOption) ([]byte, error)

func IngestTableFromBlocks

func IngestTableFromBlocks(db objects.Store, sorter *sorter.Sorter, columns []string, pk []uint32, blocks <-chan *sorter.Block, logger logr.Logger, opts ...InserterOption) ([]byte, error)

func ProfileTable added in v0.8.0

func ProfileTable(db objects.Store, sum []byte, tbl *objects.Table) error

func ReingestTable added in v0.12.1

func ReingestTable(db objects.Store, s *sorter.Sorter, tbl *objects.Table, useBlockIndex bool, logger logr.Logger, opts ...InserterOption) (newTableSum []byte, err error)

ReingestTable searchs for duplicated rows in a table. If duplicated rows are detected, it re-ingests the table and return the new table sum

Types

type Error added in v0.11.6

type Error struct {
	Message string
}

func (*Error) Error added in v0.11.6

func (err *Error) Error() string

type Inserter

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

func NewInserter added in v0.7.0

func NewInserter(db objects.Store, sorter *sorter.Sorter, logger logr.Logger, opts ...InserterOption) *Inserter

func (*Inserter) IngestTableFromSorter added in v0.12.1

func (i *Inserter) IngestTableFromSorter(columns []string, pk []uint32) ([]byte, error)

type InserterOption

type InserterOption func(*Inserter)

func WithNumWorkers

func WithNumWorkers(n int) InserterOption

func WithProgressBar

func WithProgressBar(pt pbar.Bar) InserterOption

type ProgressBar

type ProgressBar interface {
	Add(int) error
	Finish() error
}

Jump to

Keyboard shortcuts

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