Documentation ¶
Index ¶
- Constants
- type Iterator
- type Manager
- func (m *Manager) Drop(ctx context.Context, st graveler.StagingToken) error
- func (m *Manager) DropAsync(ctx context.Context, st graveler.StagingToken) error
- func (m *Manager) DropByPrefix(ctx context.Context, st graveler.StagingToken, prefix graveler.Key) error
- func (m *Manager) DropKey(ctx context.Context, st graveler.StagingToken, key graveler.Key) error
- func (m *Manager) Get(ctx context.Context, st graveler.StagingToken, key graveler.Key) (*graveler.Value, error)
- func (m *Manager) List(ctx context.Context, st graveler.StagingToken, batchSize int) graveler.ValueIterator
- func (m *Manager) OnCleanup(cleanupCallback func())
- func (m *Manager) Set(ctx context.Context, st graveler.StagingToken, key graveler.Key, ...) error
- func (m *Manager) Update(ctx context.Context, st graveler.StagingToken, key graveler.Key, ...) error
Constants ¶
View Source
const (
MaxBatchDelay = 3 * time.Millisecond
)
cleanTokens is async cleaning of deleted staging tokens
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
func NewStagingIterator ¶
func NewStagingIterator(ctx context.Context, kvStore kv.Store, st graveler.StagingToken, batchSize int) *Iterator
NewStagingIterator initiates the staging iterator with a batchSize
func (*Iterator) Value ¶
func (s *Iterator) Value() *graveler.ValueRecord
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) DropByPrefix ¶
func (*Manager) List ¶
func (m *Manager) List(ctx context.Context, st graveler.StagingToken, batchSize int) graveler.ValueIterator
List returns an iterator of staged values on the staging token st
Click to show internal directories.
Click to hide internal directories.