#include <XrdEcReader.hh>
XrdEc::Reader::Reader |
( |
ObjCfg & |
objcfg | ) |
|
|
inline |
Constructor
- Parameters
-
objcfg | : configuration for the data object (e.g. number of data and parity stripes) |
virtual XrdEc::Reader::~Reader |
( |
| ) |
|
|
virtual |
void XrdEc::Reader::AddMissing |
( |
const buffer_t & |
cdbuff | ) |
|
|
private |
Add all the entries from given Central Directory to missing
- Parameters
-
cdbuff | : buffer containing central directory |
uint64_t XrdEc::Reader::GetSize |
( |
| ) |
|
|
inline |
- Returns
- : get file size
References filesize.
bool XrdEc::Reader::IsMissing |
( |
const std::string & |
fn | ) |
|
|
private |
Check if chunk file name is missing.
Open the erasure coded / striped object
- Parameters
-
Parse metadata from chunk info object
- Parameters
-
ch | : chunk info object returned by a read operation |
void XrdEc::Reader::Read |
( |
uint64_t |
offset, |
|
|
uint32_t |
length, |
|
|
void * |
buffer, |
|
|
XrdCl::ResponseHandler * |
handler, |
|
|
uint16_t |
timeout |
|
) |
| |
Read data from the data object
- Parameters
-
offset | : offset of the data to be read |
length | : length of the data to be read |
buffer | : buffer for the data to be read |
handler | : user callback |
void XrdEc::Reader::Read |
( |
size_t |
blknb, |
|
|
size_t |
strpnb, |
|
|
buffer_t & |
buffer, |
|
|
callback_t |
cb, |
|
|
uint16_t |
timeout = 0 |
|
) |
| |
|
private |
Read data from given stripes from given block
- Parameters
-
blknb | : number of the block |
strpnb | : number of stripe in the block |
buffer | : buffer for the data |
cb | : callback |
timeout | : operation timeout |
Read metadata for the object
- Parameters
-
Read size from xattr
- Parameters
-
std::mutex XrdEc::Reader::blkmtx |
|
private |
std::shared_ptr<block_t> XrdEc::Reader::block |
|
private |
uint64_t XrdEc::Reader::filesize |
|
private |
size_t XrdEc::Reader::lstblk |
|
private |
The documentation for this class was generated from the following file: