Apache OpenDALâ„¢ C++ Binding
The C++ binding for Apache OpenDALâ„¢
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
opendal::async::Reader Class Reference

Async Reader is designed to read data from a specific path in an asynchronous manner. More...

#include <opendal_async.hpp>

Public Types

using ReadFuture = opendal::ffi::async::RustFutureRead
 

Public Member Functions

 Reader (const Reader &)=delete
 
Readeroperator= (const Reader &)=delete
 
 Reader (Reader &&other) noexcept
 
Readeroperator= (Reader &&other) noexcept
 
 ~Reader () noexcept
 
 Reader (size_t reader_id) noexcept
 
ReadFuture read (uint64_t start, uint64_t len)
 Read data from the specified range.
 

Friends

class Operator
 

Detailed Description

Async Reader is designed to read data from a specific path in an asynchronous manner.

It provides streaming read operations with range support.

Member Typedef Documentation

◆ ReadFuture

using opendal::async::Reader::ReadFuture = opendal::ffi::async::RustFutureRead

Constructor & Destructor Documentation

◆ Reader() [1/3]

opendal::async::Reader::Reader ( const Reader )
delete

◆ Reader() [2/3]

opendal::async::Reader::Reader ( Reader &&  other)
noexcept

◆ ~Reader()

opendal::async::Reader::~Reader ( )
noexcept

◆ Reader() [3/3]

opendal::async::Reader::Reader ( size_t  reader_id)
explicitnoexcept

Member Function Documentation

◆ operator=() [1/2]

Reader & opendal::async::Reader::operator= ( const Reader )
delete

◆ operator=() [2/2]

Reader & opendal::async::Reader::operator= ( Reader &&  other)
noexcept

◆ read()

ReadFuture opendal::async::Reader::read ( uint64_t  start,
uint64_t  len 
)

Read data from the specified range.

Parameters
startStart offset in bytes
lenNumber of bytes to read
Returns
Future that resolves to the read data

Friends And Related Symbol Documentation

◆ Operator

friend class Operator
friend

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