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::CSVWriterState Struct Reference
Collaboration diagram for duckdb::CSVWriterState:

Public Member Functions

 CSVWriterState (ClientContext &context, idx_t flush_size)
 
 CSVWriterState (DatabaseInstance &db, idx_t flush_size)
 
void Reset ()
 

Public Attributes

idx_t flush_size
 
unique_ptr< MemoryStreamstream
 
bool written_anything = false
 
bool require_manual_flush = false
 

Constructor & Destructor Documentation

◆ CSVWriterState() [1/3]

duckdb::CSVWriterState::CSVWriterState ( ClientContext context,
idx_t  flush_size 
)
50977 : flush_size(flush_size_p), stream(make_uniq<MemoryStream>(Allocator::Get(context), flush_size)) {
50978}

◆ CSVWriterState() [2/3]

duckdb::CSVWriterState::CSVWriterState ( DatabaseInstance db,
idx_t  flush_size 
)
50981 : flush_size(flush_size_p), stream(make_uniq<MemoryStream>(BufferAllocator::Get(db), flush_size)) {
50982}

◆ CSVWriterState() [3/3]

duckdb::CSVWriterState::CSVWriterState ( )
50973 : flush_size(MemoryStream::DEFAULT_INITIAL_CAPACITY), stream(make_uniq<MemoryStream>()) {
50974}

◆ ~CSVWriterState()

duckdb::CSVWriterState::~CSVWriterState ( )
50984 {
50985 if (stream && !Exception::UncaughtException()) {
50986 // Ensure we don't accidentally destroy unflushed data
50987 D_ASSERT(stream->GetPosition() == 0);
50988 }
50989}

Member Function Documentation

◆ Reset()

void duckdb::CSVWriterState::Reset ( )
inline
50855 {
50856 stream->Rewind();
50857 written_anything = false;
50858 }

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