Represents the local disk.
More...
#include <local_io.hh>
|
| void | write (const std::string &, const std::string &) |
| | Unbuffered write to disk. More...
|
| |
| void | update (const std::string &, const std::string &, uint64_t, uint64_t) |
| |
| std::string | read (const std::string &) |
| |
| std::string | read (const std::string &, uint64_t, uint64_t) |
| |
| void | append (const std::string &, const std::string &, uint64_t) |
| |
| std::string | read (const std::string &, uint64_t, uint64_t, bool) |
| |
| std::string | batch_read (const std::string &, uint32_t, std::vector< std::pair< uint64_t, uint64_t > > &) |
| |
| std::string | read_metadata () |
| |
| void | remove (const std::string &) |
| |
| bool | format () |
| |
| | Local_io () |
| |
Represents the local disk.
Local_io automatically computes the prefix of the path.
◆ Local_io()
◆ append()
| void Local_io::append |
( |
const std::string & |
name, |
|
|
const std::string & |
v, |
|
|
uint64_t |
len |
|
) |
| |
◆ batch_read()
| std::string Local_io::batch_read |
( |
const std::string & |
, |
|
|
uint32_t |
, |
|
|
std::vector< std::pair< uint64_t, uint64_t > > & |
|
|
) |
| |
◆ format()
| bool Local_io::format |
( |
| ) |
|
◆ read() [1/3]
| std::string eclipse::Local_io::read |
( |
const std::string & |
| ) |
|
◆ read() [2/3]
| std::string eclipse::Local_io::read |
( |
const std::string & |
, |
|
|
uint64_t |
, |
|
|
uint64_t |
|
|
) |
| |
◆ read() [3/3]
| std::string eclipse::Local_io::read |
( |
const std::string & |
, |
|
|
uint64_t |
, |
|
|
uint64_t |
, |
|
|
bool |
|
|
) |
| |
◆ read_metadata()
| std::string Local_io::read_metadata |
( |
| ) |
|
◆ remove()
| void Local_io::remove |
( |
const std::string & |
k | ) |
|
◆ update()
| void Local_io::update |
( |
const std::string & |
name, |
|
|
const std::string & |
v, |
|
|
uint64_t |
pos, |
|
|
uint64_t |
len |
|
) |
| |
◆ write()
| void Local_io::write |
( |
const std::string & |
name, |
|
|
const std::string & |
v |
|
) |
| |
Unbuffered write to disk.
No buffer
Binary write
The documentation for this class was generated from the following files:
- /home/runner/work/VeloxDFS/VeloxDFS/src/blocknode/local_io.hh
- /home/runner/work/VeloxDFS/VeloxDFS/src/blocknode/local_io.cc