Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitTreesRepository ¶
InitTreeRepository creates the tree cache, and stores part Manager for operations of parts (currently implemented as sstables). should be called at process init. decisions on who calls it and how to get a treesRepository will be taken later
type TreeRepo ¶
type TreeRepo interface {
// NewTreeWriter returns a writer that uses the part manager to create a new tree
NewTreeWriter(splitFactor int,
closeAsync sstable.BatchWriterCloser,
) TreeWriter
// NewScannerFromTreeID accepts a tree ID, and returns an iterator over the tree
NewIteratorFromTreeID(treeID graveler.TreeID, start graveler.Key) (graveler.ValueIterator, error)
// NewIteratorFromTreeParts accept a tree in memory, returns iterator over the tree
NewIteratorFromTreeSlice(treeSlice TreeSlice, start graveler.Key) (graveler.ValueIterator, error)
}
type TreeWriter ¶
type TreeWriter interface {
WriteEntry(record graveler.ValueRecord) error
// FlushIterToTree writes the content of an iterator to the tree.
FlushIterToTree(iter graveler.ValueIterator) error
// SaveTree stores the tree to tierFS. During tree writing, parts are closed asynchronously and copied by tierFS
// while writing continues. SaveTree waits until closing and copying all parts
SaveTree() (graveler.TreeID, error)
SaveTreeWithReusedParts(reuseTree TreeSlice,
) (graveler.TreeID, error)
}
Click to show internal directories.
Click to hide internal directories.