|
Apache OpenDALâ„¢ C++ Binding
The C++ binding for Apache OpenDALâ„¢
|
Operator is the entry for all public APIs. More...
#include <opendal.hpp>
Public Member Functions | |
| Operator () noexcept | |
| Operator (std::string_view scheme, const std::unordered_map< std::string, std::string > &config={}, std::vector< std::unique_ptr< OperatorOption > > options={}) | |
| Construct a new Operator object. | |
| Operator (const Operator &)=delete | |
| Operator & | operator= (const Operator &)=delete |
| Operator (Operator &&other) noexcept | |
| Operator & | operator= (Operator &&other) noexcept |
| ~Operator () noexcept | |
| bool | Available () const |
| Check if the operator is available. | |
| std::string | Read (std::string_view path) |
| Read data from the operator. | |
| std::string | Read (std::string_view path, const ReadOptions &options) |
| Read data from the operator with extra options. | |
| void | Write (std::string_view path, std::string_view data) |
| Write data to the operator. | |
| void | Write (std::string_view path, std::string_view data, const WriteOptions &options) |
| Write data to the operator with extra options. | |
| Reader | GetReader (std::string_view path) |
| Read data from the operator. | |
| Reader | GetReader (std::string_view path, const ReaderOptions &options) |
| Writer | GetWriter (std::string_view path) |
| Writer | GetWriter (std::string_view path, const WriteOptions &options) |
| bool | IsExist (std::string_view path) |
| Check if the path exists. | |
| bool | Exists (std::string_view path) |
| Check if the path exists. | |
| void | CreateDir (std::string_view path) |
| Create a directory. | |
| void | Copy (std::string_view src, std::string_view dst) |
| Copy a file from src to dst. | |
| void | Copy (std::string_view src, std::string_view dst, const CopyOptions &options) |
| void | Rename (std::string_view src, std::string_view dst) |
| Rename a file from src to dst. | |
| void | Rename (std::string_view src, std::string_view dst, const RenameOptions &options) |
| void | Remove (std::string_view path) |
| Remove a file or directory. | |
| void | Remove (std::string_view path, const DeleteOptions &options) |
| void | RemoveAll (const std::vector< std::string > &paths) |
| Metadata | Stat (std::string_view path) |
| Get the metadata of a file or directory. | |
| Metadata | Stat (std::string_view path, const StatOptions &options) |
| std::vector< Entry > | List (std::string_view path) |
| List the entries of a directory. | |
| std::vector< Entry > | List (std::string_view path, const ListOptions &options) |
| Lister | GetLister (std::string_view path) |
| Lister | GetLister (std::string_view path, const ListOptions &options) |
| Capability | Info () |
Operator is the entry for all public APIs.
|
noexcept |
| opendal::Operator::Operator | ( | std::string_view | scheme, |
| const std::unordered_map< std::string, std::string > & | config = {}, |
||
| std::vector< std::unique_ptr< OperatorOption > > | options = {} |
||
| ) |
Construct a new Operator object.
| scheme | The scheme of the operator, same as the name of rust doc |
| config | The configuration of the operator, same as the service doc |
| options | Optional layers to apply during construction |
|
delete |
|
noexcept |
|
noexcept |
| bool opendal::Operator::Available | ( | ) | const |
Check if the operator is available.
| void opendal::Operator::Copy | ( | std::string_view | src, |
| std::string_view | dst | ||
| ) |
Copy a file from src to dst.
| src | The source path |
| dst | The destination path |
| void opendal::Operator::Copy | ( | std::string_view | src, |
| std::string_view | dst, | ||
| const CopyOptions & | options | ||
| ) |
| void opendal::Operator::CreateDir | ( | std::string_view | path | ) |
Create a directory.
| path | The path of the directory |
| bool opendal::Operator::Exists | ( | std::string_view | path | ) |
Check if the path exists.
| path | The path to check |
| Lister opendal::Operator::GetLister | ( | std::string_view | path | ) |
| Lister opendal::Operator::GetLister | ( | std::string_view | path, |
| const ListOptions & | options | ||
| ) |
| Reader opendal::Operator::GetReader | ( | std::string_view | path | ) |
Read data from the operator.
| path | The path of the data |
| Reader opendal::Operator::GetReader | ( | std::string_view | path, |
| const ReaderOptions & | options | ||
| ) |
| Writer opendal::Operator::GetWriter | ( | std::string_view | path | ) |
| Writer opendal::Operator::GetWriter | ( | std::string_view | path, |
| const WriteOptions & | options | ||
| ) |
| Capability opendal::Operator::Info | ( | ) |
| bool opendal::Operator::IsExist | ( | std::string_view | path | ) |
Check if the path exists.
| path | The path to check |
| std::vector< Entry > opendal::Operator::List | ( | std::string_view | path | ) |
List the entries of a directory.
| path | The path of the directory |
| std::vector< Entry > opendal::Operator::List | ( | std::string_view | path, |
| const ListOptions & | options | ||
| ) |
| std::string opendal::Operator::Read | ( | std::string_view | path | ) |
Read data from the operator.
GetReader method.| path | The path of the data |
| std::string opendal::Operator::Read | ( | std::string_view | path, |
| const ReadOptions & | options | ||
| ) |
Read data from the operator with extra options.
| path | The path of the data |
| options | The read options |
| void opendal::Operator::Remove | ( | std::string_view | path | ) |
Remove a file or directory.
| path | The path of the file or directory |
| void opendal::Operator::Remove | ( | std::string_view | path, |
| const DeleteOptions & | options | ||
| ) |
| void opendal::Operator::RemoveAll | ( | const std::vector< std::string > & | paths | ) |
| void opendal::Operator::Rename | ( | std::string_view | src, |
| std::string_view | dst | ||
| ) |
Rename a file from src to dst.
| src | The source path |
| dst | The destination path |
| void opendal::Operator::Rename | ( | std::string_view | src, |
| std::string_view | dst, | ||
| const RenameOptions & | options | ||
| ) |
| Metadata opendal::Operator::Stat | ( | std::string_view | path | ) |
Get the metadata of a file or directory.
| path | The path of the file or directory |
| Metadata opendal::Operator::Stat | ( | std::string_view | path, |
| const StatOptions & | options | ||
| ) |
| void opendal::Operator::Write | ( | std::string_view | path, |
| std::string_view | data | ||
| ) |
Write data to the operator.
| path | The path of the data |
| data | The data to write |
| void opendal::Operator::Write | ( | std::string_view | path, |
| std::string_view | data, | ||
| const WriteOptions & | options | ||
| ) |
Write data to the operator with extra options.
| path | The path of the data |
| data | The data to write |
| options | The write options |