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::WindowBuilder Class Reference
Collaboration diagram for duckdb::WindowBuilder:

Public Types

using ColumnDataCollectionSpec = WindowCollection::ColumnDataCollectionSpec
 The thread's current input collection.

Public Member Functions

 WindowBuilder (WindowCollection &collection)
void Sink (DataChunk &chunk, idx_t input_idx)
 Add a new chunk at the given index.

Public Attributes

WindowCollection & collection
 The collection we are helping to build.
ColumnDataCollectionSpec sink
ColumnDataAppendState appender
 The state used for appending to the collection.
bool all_valid = true
 Are all the sunk rows valid?

Constructor & Destructor Documentation

◆ WindowBuilder()

duckdb::WindowBuilder::WindowBuilder ( WindowCollection & collection)
explicit
254809}
WindowCollection & collection
The collection we are helping to build.
Definition duckdb.cpp:163467

Member Function Documentation

◆ Sink()

void duckdb::WindowBuilder::Sink ( DataChunk & chunk,
idx_t input_idx )

Add a new chunk at the given index.

254811 {
254812 // Check whether we need a a new collection
254813 if (!sink.second || input_idx < sink.first || sink.first + sink.second->Count() < input_idx) {
254814 collection.GetCollection(input_idx, sink);
254815 D_ASSERT(sink.second);
254816 sink.second->InitializeAppend(appender);
254817 }
254818 sink.second->Append(appender, chunk);
254819
254820 // Record NULLs
254821 for (column_t col_idx = 0; col_idx < chunk.ColumnCount(); ++col_idx) {
254822 if (!collection.all_valids[col_idx]) {
254823 continue;
254824 }
254825
254826 // Column was valid, make sure it still is.
254827 UnifiedVectorFormat data;
254828 chunk.data[col_idx].ToUnifiedFormat(chunk.size(), data);
254829 if (!data.validity.AllValid()) {
254830 collection.all_valids[col_idx] = false;
254831 }
254832 }
254833}
vector< Vector > data
The vectors owned by the DataChunk.
Definition duckdb.hpp:11445
ColumnDataAppendState appender
The state used for appending to the collection.
Definition duckdb.cpp:163472
idx_t column_t
Type used for column identifiers.
Definition duckdb.hpp:259

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