A RDaosContainer provides read/write access to objects in a given container.
Definition at line 146 of file RDaos.hxx.
|
struct | RWOperation |
| Describes a read/write operation on multiple objects; see the ReadV /WriteV functions. More...
|
|
|
| RDaosContainer (std::shared_ptr< RDaosPool > pool, std::string_view containerId, bool create=false) |
|
| ~RDaosContainer () |
|
std::string | GetContainerUuid () |
|
ObjClassId_t | GetDefaultObjectClass () const |
|
int | ReadSingleAkey (void *buffer, std::size_t length, daos_obj_id_t oid, DistributionKey_t dkey, AttributeKey_t akey) |
|
int | ReadSingleAkey (void *buffer, std::size_t length, daos_obj_id_t oid, DistributionKey_t dkey, AttributeKey_t akey, ObjClassId_t cid) |
| Read data from a single object attribute key to the given buffer. More...
|
|
int | ReadV (std::vector< RWOperation > &vec) |
|
int | ReadV (std::vector< RWOperation > &vec, ObjClassId_t cid) |
| Perform a vector read operation on (possibly) multiple objects. More...
|
|
void | SetDefaultObjectClass (const ObjClassId_t cid) |
|
int | WriteSingleAkey (const void *buffer, std::size_t length, daos_obj_id_t oid, DistributionKey_t dkey, AttributeKey_t akey) |
|
int | WriteSingleAkey (const void *buffer, std::size_t length, daos_obj_id_t oid, DistributionKey_t dkey, AttributeKey_t akey, ObjClassId_t cid) |
| Write the given buffer to a single object attribute key. More...
|
|
int | WriteV (std::vector< RWOperation > &vec) |
|
int | WriteV (std::vector< RWOperation > &vec, ObjClassId_t cid) |
| Perform a vector write operation on (possibly) multiple objects. More...
|
|
#include <ROOT/RDaos.hxx>
◆ AttributeKey_t
◆ DistributionKey_t
◆ ObjClassId_t
◆ RDaosContainer()
ROOT::Experimental::Detail::RDaosContainer::RDaosContainer |
( |
std::shared_ptr< RDaosPool > |
pool, |
|
|
std::string_view |
containerId, |
|
|
bool |
create = false |
|
) |
| |
◆ ~RDaosContainer()
ROOT::Experimental::Detail::RDaosContainer::~RDaosContainer |
( |
| ) |
|
◆ GetContainerUuid()
std::string ROOT::Experimental::Detail::RDaosContainer::GetContainerUuid |
( |
| ) |
|
◆ GetDefaultObjectClass()
ObjClassId_t ROOT::Experimental::Detail::RDaosContainer::GetDefaultObjectClass |
( |
| ) |
const |
|
inline |
◆ ReadSingleAkey() [1/2]
◆ ReadSingleAkey() [2/2]
Read data from a single object attribute key to the given buffer.
- Parameters
-
buffer | The address of a buffer that has capacity for at least length bytes. |
length | Length of the buffer. |
oid | A 128-bit DAOS object identifier. |
dkey | The distribution key used for this operation. |
akey | The attribute key used for this operation. |
cid | An object class ID. |
- Returns
- 0 if the operation succeeded; a negative DAOS error number otherwise.
Definition at line 202 of file RDaos.cxx.
◆ ReadV() [1/2]
int ROOT::Experimental::Detail::RDaosContainer::ReadV |
( |
std::vector< RWOperation > & |
vec | ) |
|
|
inline |
◆ ReadV() [2/2]
Perform a vector read operation on (possibly) multiple objects.
- Parameters
-
vec | A std::vector<RWOperation> that describes read operations to perform. |
cid | An object class ID. |
- Returns
- Number of operations that could not complete.
Definition at line 259 of file RDaos.hxx.
◆ SetDefaultObjectClass()
void ROOT::Experimental::Detail::RDaosContainer::SetDefaultObjectClass |
( |
const ObjClassId_t |
cid | ) |
|
|
inline |
◆ VectorReadWrite()
Perform a vector read/write operation on different objects.
- Parameters
-
- Returns
- DAOS error code (< 0) in case of failure, 0 on success.
Definition at line 181 of file RDaos.hxx.
◆ WriteSingleAkey() [1/2]
◆ WriteSingleAkey() [2/2]
Write the given buffer to a single object attribute key.
- Parameters
-
buffer | The address of the source buffer. |
length | Length of the buffer. |
oid | A 128-bit DAOS object identifier. |
dkey | The distribution key used for this operation. |
akey | The attribute key used for this operation. |
cid | An object class ID. |
- Returns
- 0 if the operation succeeded; a negative DAOS error number otherwise.
Definition at line 212 of file RDaos.cxx.
◆ WriteV() [1/2]
int ROOT::Experimental::Detail::RDaosContainer::WriteV |
( |
std::vector< RWOperation > & |
vec | ) |
|
|
inline |
◆ WriteV() [2/2]
Perform a vector write operation on (possibly) multiple objects.
- Parameters
-
vec | A std::vector<RWOperation> that describes write operations to perform. |
cid | An object class ID. |
- Returns
- Number of operations that could not complete.
Definition at line 269 of file RDaos.hxx.
◆ RDaosObject
◆ fContainerHandle
daos_handle_t ROOT::Experimental::Detail::RDaosContainer::fContainerHandle {} |
|
private |
◆ fContainerLabel
std::string ROOT::Experimental::Detail::RDaosContainer::fContainerLabel {} |
|
private |
◆ fContainerUuid
uuid_t ROOT::Experimental::Detail::RDaosContainer::fContainerUuid {} |
|
private |
◆ fDefaultObjectClass
◆ fPool
std::shared_ptr<RDaosPool> ROOT::Experimental::Detail::RDaosContainer::fPool |
|
private |
The documentation for this class was generated from the following files: