Flex
0.17.9
|
#include <wal.h>
Public Member Functions | |
virtual | ~IWalWriter () |
virtual std::string | type () const =0 |
virtual void | open (const std::string &uri, int thread_id)=0 |
virtual void | close ()=0 |
virtual bool | append (const char *data, size_t length)=0 |
The interface of wal writer.
|
inlinevirtual |
|
pure virtual |
Append data to the wal file.
Implemented in gs::LocalWalWriter.
|
pure virtual |
Close the wal writer. If a remote connection is hold by the wal writer, it should be closed.
Implemented in gs::LocalWalWriter.
|
pure virtual |
Open a wal file. In our design, each thread has its own wal file. The uri could be a file_path or a remote connection string.
Implemented in gs::LocalWalWriter.
|
pure virtual |
Implemented in gs::LocalWalWriter.