staging

package
v0.70.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBIterator added in v0.69.0

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

func NewDBStagingIterator added in v0.69.0

func NewDBStagingIterator(ctx context.Context, db db.Database, log logging.Logger, st graveler.StagingToken, batchSize int) *DBIterator

NewDBStagingIterator initiates the staging iterator with a batchSize

func (*DBIterator) Close added in v0.69.0

func (s *DBIterator) Close()

func (*DBIterator) Err added in v0.69.0

func (s *DBIterator) Err() error

func (*DBIterator) Next added in v0.69.0

func (s *DBIterator) Next() bool

func (*DBIterator) SeekGE added in v0.69.0

func (s *DBIterator) SeekGE(key graveler.Key)

func (*DBIterator) Value added in v0.69.0

func (s *DBIterator) Value() *graveler.ValueRecord

type DBManager added in v0.69.0

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

func NewDBManager added in v0.69.0

func NewDBManager(db db.Database) *DBManager

func (*DBManager) Drop added in v0.69.0

func (*DBManager) DropAsync added in v0.70.1

func (p *DBManager) DropAsync(ctx context.Context, st graveler.StagingToken) error

func (*DBManager) DropByPrefix added in v0.69.0

func (p *DBManager) DropByPrefix(ctx context.Context, st graveler.StagingToken, prefix graveler.Key) error

func (*DBManager) DropKey added in v0.69.0

func (p *DBManager) DropKey(ctx context.Context, st graveler.StagingToken, key graveler.Key) error

func (*DBManager) Get added in v0.69.0

func (*DBManager) List added in v0.69.0

func (p *DBManager) List(ctx context.Context, st graveler.StagingToken, batchSize int) (graveler.ValueIterator, error)

List returns an iterator of staged values on the staging token st

func (*DBManager) Set added in v0.69.0

func (p *DBManager) Set(ctx context.Context, st graveler.StagingToken, key graveler.Key, value *graveler.Value, overwrite bool) error

func (*DBManager) Update added in v0.70.0

type Iterator

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

func NewStagingIterator

func NewStagingIterator(ctx context.Context, store kv.StoreMessage, st graveler.StagingToken) (*Iterator, error)

NewStagingIterator initiates the staging iterator with a batchSize

func (*Iterator) Close

func (s *Iterator) Close()

func (*Iterator) Err

func (s *Iterator) Err() error

func (*Iterator) Next

func (s *Iterator) Next() bool

func (*Iterator) SeekGE

func (s *Iterator) SeekGE(key graveler.Key)

func (*Iterator) Value

func (s *Iterator) Value() *graveler.ValueRecord

type Manager

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

func NewManager

func NewManager(ctx context.Context, store kv.StoreMessage) *Manager

func (*Manager) Drop

func (m *Manager) Drop(ctx context.Context, st graveler.StagingToken) error

func (*Manager) DropAsync added in v0.70.1

func (m *Manager) DropAsync(ctx context.Context, st graveler.StagingToken) error

func (*Manager) DropByPrefix

func (m *Manager) DropByPrefix(ctx context.Context, st graveler.StagingToken, prefix graveler.Key) error

func (*Manager) DropKey

func (m *Manager) DropKey(ctx context.Context, st graveler.StagingToken, key graveler.Key) error

func (*Manager) Get

func (*Manager) List

List TODO niro: Remove batchSize parameter post KV List returns an iterator of staged values on the staging token st

func (*Manager) OnCleanup added in v0.70.1

func (m *Manager) OnCleanup(cleanupCallback func())

func (*Manager) Set

func (m *Manager) Set(ctx context.Context, st graveler.StagingToken, key graveler.Key, value *graveler.Value, _ bool) error

func (*Manager) Update added in v0.70.0

func (m *Manager) Update(ctx context.Context, st graveler.StagingToken, key graveler.Key, updateFunc graveler.ValueUpdateFunc) error

Jump to

Keyboard shortcuts

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