Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::RowGroupSegmentTree Class Reference
Inheritance diagram for duckdb::RowGroupSegmentTree:
Collaboration diagram for duckdb::RowGroupSegmentTree:

Public Member Functions

 RowGroupSegmentTree (RowGroupCollection &collection, idx_t base_row_id)
 
void Initialize (PersistentTableData &data, optional_ptr< vector< MetaBlockPointer > > read_pointers=nullptr)
 
MetaBlockPointer GetRootPointer () const
 
- Public Member Functions inherited from duckdb::SegmentTree< RowGroup, true >
 SegmentTree (idx_t base_row_id=0)
 
SegmentLock Lock () const
 
bool IsEmpty (SegmentLock &l) const
 
optional_ptr< SegmentNode< RowGroup > > GetRootSegment () const
 Gets a pointer to the first segment. Useful for scans.
 
optional_ptr< SegmentNode< RowGroup > > GetRootSegment (SegmentLock &l) const
 
vector< unique_ptr< SegmentNode< RowGroup > > > MoveSegments (SegmentLock &l)
 Obtains ownership of the data of the segment tree.
 
vector< unique_ptr< SegmentNode< RowGroup > > > MoveSegments ()
 
vector< unique_ptr< SegmentNode< RowGroup > > > & ReferenceLoadedSegmentsMutable (SegmentLock &l)
 
idx_t GetSegmentCount () const
 
idx_t GetSegmentCount (SegmentLock &l) const
 
optional_ptr< SegmentNode< RowGroup > > GetSegmentByIndex (int64_t index) const
 Gets a pointer to the nth segment. Negative numbers start from the back.
 
optional_ptr< SegmentNode< RowGroup > > GetSegmentByIndex (SegmentLock &l, int64_t index) const
 
optional_ptr< SegmentNode< RowGroup > > GetNextSegment (SegmentNode< RowGroup > &node) const
 Gets the next segment.
 
optional_ptr< SegmentNode< RowGroup > > GetNextSegment (SegmentLock &l, SegmentNode< RowGroup > &node) const
 
optional_ptr< SegmentNode< RowGroup > > GetLastSegment (SegmentLock &l) const
 Gets a pointer to the last segment. Useful for appends.
 
optional_ptr< SegmentNode< RowGroup > > GetSegment (idx_t row_number) const
 Gets a pointer to a specific column segment for the given row.
 
optional_ptr< SegmentNode< RowGroup > > GetSegment (SegmentLock &l, idx_t row_number) const
 
void AppendSegment (shared_ptr< RowGroup > segment)
 
void AppendSegment (SegmentLock &l, shared_ptr< RowGroup > segment)
 
void AppendSegment (SegmentLock &l, shared_ptr< RowGroup > segment, idx_t row_start)
 
bool HasSegment (SegmentNode< RowGroup > &segment) const
 Debug method, check whether the segment is in the segment tree.
 
bool HasSegment (SegmentLock &, SegmentNode< RowGroup > &segment) const
 
void EraseSegments (SegmentLock &l, idx_t segment_start)
 Erase all segments after a specific segment.
 
idx_t GetSegmentIndex (SegmentLock &l, idx_t row_number) const
 Get the segment index of the column segment for the given row.
 
bool TryGetSegmentIndex (SegmentLock &l, idx_t row_number, idx_t &result) const
 
void Verify (SegmentLock &) const
 
void Verify ()
 
idx_t GetBaseRowId () const
 
SegmentIterationHelper Segments () const
 
SegmentIterationHelper Segments (SegmentLock &l) const
 
SegmentNodeIterationHelper SegmentNodes () const
 
SegmentNodeIterationHelper SegmentNodes (SegmentLock &l) const
 

Protected Member Functions

shared_ptr< RowGroupLoadSegment () const override
 Load the next segment - only used when lazily loading.
 
- Protected Member Functions inherited from duckdb::SegmentTree< RowGroup, true >
optional_ptr< SegmentNode< RowGroup > > GetRootSegmentInternal () const
 

Protected Attributes

RowGroupCollectioncollection
 
idx_t current_row_group
 
idx_t max_row_group
 
unique_ptr< MetadataReaderreader
 
MetaBlockPointer root_pointer
 
- Protected Attributes inherited from duckdb::SegmentTree< RowGroup, true >
atomic< bool > finished_loading
 

Member Function Documentation

◆ GetRootPointer()

MetaBlockPointer duckdb::RowGroupSegmentTree::GetRootPointer ( ) const
inline
23998 {
23999 return root_pointer;
24000 }

◆ LoadSegment()

shared_ptr< RowGroup > duckdb::RowGroupSegmentTree::LoadSegment ( ) const
overrideprotectedvirtual

Load the next segment - only used when lazily loading.

Reimplemented from duckdb::SegmentTree< RowGroup, true >.


The documentation for this class was generated from the following file: