![]() |
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.
|
The Appender class can be used to append elements to a table. More...
#include <duckdb.hpp>


Public Member Functions | |
| DUCKDB_API void | BeginRow () |
| Begins a new row append, after calling this the other AppendX() functions should be called the correct amount of times. After that, EndRow() should be called. | |
| DUCKDB_API void | EndRow () |
| Finishes appending the current row. | |
| template<class T> | |
| void | Append (T value)=delete |
| DUCKDB_API void | Append (DataChunk &target, const Value &value, idx_t col, idx_t row) |
| DUCKDB_API void | Append (const char *value, uint32_t length) |
| template<typename... ARGS> | |
| void | AppendRow (ARGS... args) |
| DUCKDB_API void | Flush () |
| Commit the changes made by the appender. | |
| DUCKDB_API void | Close () |
| Flush the changes made by the appender and close it. The appender cannot be used after this point. | |
| DUCKDB_API void | Clear () |
| Clears any appended data (without flushing). | |
| const vector< LogicalType > & | GetActiveTypes () const |
| Returns the active types of the appender. | |
| idx_t | CurrentColumn () const |
| DUCKDB_API void | AppendDataChunk (DataChunk &value) |
| virtual void | AppendDefault () |
| virtual void | AppendDefault (DataChunk &chunk, idx_t col, idx_t row) |
| virtual void | AddColumn (const string &name) |
| Appends a column to the active column list. Immediately flushes all previous data. | |
| virtual void | ClearColumns () |
| Removes all columns from the active column list. Immediately flushes all previous data. | |
| template<> | |
| void | Append (bool value) |
| template<> | |
| void | Append (int8_t value) |
| template<> | |
| void | Append (int16_t value) |
| template<> | |
| void | Append (int32_t value) |
| template<> | |
| void | Append (int64_t value) |
| template<> | |
| void | Append (hugeint_t value) |
| template<> | |
| void | Append (uhugeint_t value) |
| template<> | |
| void | Append (uint8_t value) |
| template<> | |
| void | Append (uint16_t value) |
| template<> | |
| void | Append (uint32_t value) |
| template<> | |
| void | Append (uint64_t value) |
| template<> | |
| void | Append (const char *value) |
| template<> | |
| void | Append (string_t value) |
| template<> | |
| void | Append (float value) |
| template<> | |
| void | Append (double value) |
| template<> | |
| void | Append (date_t value) |
| template<> | |
| void | Append (dtime_t value) |
| template<> | |
| void | Append (timestamp_t value) |
| template<> | |
| void | Append (interval_t value) |
| template<> | |
| void | Append (Value value) |
| template<> | |
| void | Append (std::nullptr_t value) |
| template<> | |
| DUCKDB_API void | Append (bool value) |
| template<> | |
| DUCKDB_API void | Append (int8_t value) |
| template<> | |
| DUCKDB_API void | Append (int16_t value) |
| template<> | |
| DUCKDB_API void | Append (int32_t value) |
| template<> | |
| DUCKDB_API void | Append (int64_t value) |
| template<> | |
| DUCKDB_API void | Append (hugeint_t value) |
| template<> | |
| DUCKDB_API void | Append (uhugeint_t value) |
| template<> | |
| DUCKDB_API void | Append (uint8_t value) |
| template<> | |
| DUCKDB_API void | Append (uint16_t value) |
| template<> | |
| DUCKDB_API void | Append (uint32_t value) |
| template<> | |
| DUCKDB_API void | Append (uint64_t value) |
| template<> | |
| DUCKDB_API void | Append (float value) |
| template<> | |
| DUCKDB_API void | Append (double value) |
| template<> | |
| DUCKDB_API void | Append (date_t value) |
| template<> | |
| DUCKDB_API void | Append (dtime_t value) |
| template<> | |
| DUCKDB_API void | Append (timestamp_t value) |
| template<> | |
| DUCKDB_API void | Append (interval_t value) |
| template<> | |
| DUCKDB_API void | Append (const char *value) |
| template<> | |
| DUCKDB_API void | Append (string_t value) |
| template<> | |
| DUCKDB_API void | Append (Value value) |
| template<> | |
| DUCKDB_API void | Append (std::nullptr_t value) |
Static Public Member Functions | |
| static unique_ptr< TableRef > | GetColumnDataTableRef (ColumnDataCollection &collection, const string &table_name, const vector< string > &expected_names) |
| Returns a table reference to the appended data. | |
| static unique_ptr< SQLStatement > | ParseStatement (unique_ptr< TableRef > table_ref, const string &query, const string &table_name) |
| Parses the statement to append data. | |
Static Public Attributes | |
| static constexpr const idx_t | DEFAULT_FLUSH_COUNT = STANDARD_VECTOR_SIZE * 100ULL |
| The amount of tuples that are gathered in the column data collection before flushing. | |
Protected Member Functions | |
| DUCKDB_API | BaseAppender (Allocator &allocator, const AppenderType type) |
| DUCKDB_API | BaseAppender (Allocator &allocator, vector< LogicalType > types, const AppenderType type, const idx_t flush_count=DEFAULT_FLUSH_COUNT) |
| void | Destructor () |
| virtual void | FlushInternal (ColumnDataCollection &collection)=0 |
| void | InitializeChunk () |
| void | FlushChunk () |
| bool | ShouldFlushChunk () const |
| bool | ShouldFlush () const |
| template<class T> | |
| void | AppendValueInternal (T value) |
| template<class SRC, class DST> | |
| void | AppendValueInternal (Vector &vector, SRC input) |
| template<class SRC, class DST> | |
| void | AppendDecimalValueInternal (Vector &vector, SRC input) |
| void | AppendRowRecursive () |
| template<typename T, typename... ARGS> | |
| void | AppendRowRecursive (T value, ARGS... args) |
| void | AppendValue (const Value &value) |
| void | AppendValue (DataChunk target, const Value &value) |
Protected Attributes | |
| Allocator & | allocator |
| The allocator for the column data collection. | |
| vector< LogicalType > | types |
| The column types of the associated table. | |
| vector< LogicalType > | active_types |
| The active column types. | |
| unique_ptr< ColumnDataCollection > | collection |
| The buffered to-be-appended data. | |
| DataChunk | chunk |
| The active chunk for row-based appends. | |
| idx_t | column = 0 |
| The currently active column of row-based appends. | |
| AppenderType | appender_type |
| The type of the appender. | |
| idx_t | flush_count = DEFAULT_FLUSH_COUNT |
| The amount of rows after which the appender flushes automatically. | |
| optional_idx | flush_memory_threshold |
| Peak allocation threshold at which to flush the allocator when appender flushs chunk. | |
The Appender class can be used to append elements to a table.
|
protected |
|
protected |
|
virtual |
|
static |
Returns a table reference to the appended data.

|
static |
Parses the statement to append data.

| void duckdb::BaseAppender::BeginRow | ( | ) |
Begins a new row append, after calling this the other AppendX() functions should be called the correct amount of times. After that, EndRow() should be called.
| void duckdb::BaseAppender::EndRow | ( | ) |
Finishes appending the current row.

| void duckdb::BaseAppender::Append | ( | const char * | value, |
| uint32_t | length ) |
|
inline |
| void duckdb::BaseAppender::Flush | ( | ) |
Commit the changes made by the appender.

| void duckdb::BaseAppender::Close | ( | ) |
Flush the changes made by the appender and close it. The appender cannot be used after this point.


| void duckdb::BaseAppender::Clear | ( | ) |
Clears any appended data (without flushing).

| const vector< LogicalType > & duckdb::BaseAppender::GetActiveTypes | ( | ) | const |
Returns the active types of the appender.

| void duckdb::BaseAppender::AppendDataChunk | ( | DataChunk & | value | ) |
|
virtual |
|
virtual |
Appends a column to the active column list. Immediately flushes all previous data.
Reimplemented in Appender, and duckdb::Appender.

|
virtual |
Removes all columns from the active column list. Immediately flushes all previous data.
Reimplemented in Appender, and duckdb::Appender.

|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotected |
|
inlineprotected |
|
protected |
| void duckdb::BaseAppender::Append | ( | bool | value | ) |
| void duckdb::BaseAppender::Append | ( | int8_t | value | ) |
| void duckdb::BaseAppender::Append | ( | int16_t | value | ) |
| void duckdb::BaseAppender::Append | ( | int32_t | value | ) |
| void duckdb::BaseAppender::Append | ( | int64_t | value | ) |
| void duckdb::BaseAppender::Append | ( | hugeint_t | value | ) |
| void duckdb::BaseAppender::Append | ( | uhugeint_t | value | ) |
| void duckdb::BaseAppender::Append | ( | uint8_t | value | ) |
| void duckdb::BaseAppender::Append | ( | uint16_t | value | ) |
| void duckdb::BaseAppender::Append | ( | uint32_t | value | ) |
| void duckdb::BaseAppender::Append | ( | uint64_t | value | ) |
| void duckdb::BaseAppender::Append | ( | const char * | value | ) |
| void duckdb::BaseAppender::Append | ( | string_t | value | ) |
| void duckdb::BaseAppender::Append | ( | float | value | ) |
| void duckdb::BaseAppender::Append | ( | double | value | ) |
| void duckdb::BaseAppender::Append | ( | date_t | value | ) |
| void duckdb::BaseAppender::Append | ( | dtime_t | value | ) |
| void duckdb::BaseAppender::Append | ( | timestamp_t | value | ) |
| void duckdb::BaseAppender::Append | ( | interval_t | value | ) |
| void duckdb::BaseAppender::Append | ( | Value | value | ) |
| void duckdb::BaseAppender::Append | ( | std::nullptr_t | value | ) |