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

Public Member Functions

 WriteAheadLogSerializer (WriteAheadLog &wal, WALType wal_type)
void End ()
template<class T>
void WriteProperty (const field_id_t field_id, const char *tag, const T &value)
template<class FUNC>
void WriteList (const field_id_t field_id, const char *tag, idx_t count, FUNC func)

Private Attributes

ChecksumWriter checksum_writer
SerializationOptions options
BinarySerializer serializer

Constructor & Destructor Documentation

◆ WriteAheadLogSerializer()

duckdb::WriteAheadLogSerializer::WriteAheadLogSerializer ( WriteAheadLog & wal,
WALType wal_type )
inline
445189 : checksum_writer(wal), serializer(checksum_writer, SerializationOptions(wal.GetDatabase())) {
445190 if (!wal.Initialized()) {
445191 wal.Initialize();
445192 }
445193 // Write a header, if none has been written yet.
445194 wal.WriteHeader();
445195 serializer.Begin();
445196 serializer.WriteProperty(100, "wal_type", wal_type);
445197 }

Member Function Documentation

◆ End()

void duckdb::WriteAheadLogSerializer::End ( )
inline
445199 {
445200 serializer.End();
445201 checksum_writer.Flush();
445202 checksum_writer.GetWAL().IncrementWALEntriesCount();
445203 }

◆ WriteProperty()

template<class T>
void duckdb::WriteAheadLogSerializer::WriteProperty ( const field_id_t field_id,
const char * tag,
const T & value )
inline
445206 {
445207 serializer.WriteProperty(field_id, tag, value);
445208 }

◆ WriteList()

template<class FUNC>
void duckdb::WriteAheadLogSerializer::WriteList ( const field_id_t field_id,
const char * tag,
idx_t count,
FUNC func )
inline
445211 {
445212 serializer.WriteList(field_id, tag, count, func);
445213 }

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