This is an automated email from the ASF dual-hosted git repository. xuanwo pushed a commit to branch write_can_multig in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 9b5add809020bed28d57652641a2d5772ae76716 Author: Xuanwo <[email protected]> AuthorDate: Wed Sep 13 07:59:23 2023 +0800 Polish Signed-off-by: Xuanwo <[email protected]> --- core/src/raw/adapters/typed_kv/api.rs | 8 ++-- core/src/types/capability.rs | 71 ++++++++++++++++------------------- 2 files changed, 37 insertions(+), 42 deletions(-) diff --git a/core/src/raw/adapters/typed_kv/api.rs b/core/src/raw/adapters/typed_kv/api.rs index 3217db576..7a1b929a0 100644 --- a/core/src/raw/adapters/typed_kv/api.rs +++ b/core/src/raw/adapters/typed_kv/api.rs @@ -121,13 +121,13 @@ impl Value { /// by Typed KV Operator. #[derive(Copy, Clone, Default)] pub struct Capability { - /// If typed_kv operator supports get natively, it will be true. + /// If typed_kv operator supports get natively. pub get: bool, - /// If typed_kv operator supports set natively, it will be true. + /// If typed_kv operator supports set natively. pub set: bool, - /// If typed_kv operator supports delete natively, it will be true. + /// If typed_kv operator supports delete natively. pub delete: bool, - /// If typed_kv operator supports scan natively, it will be true. + /// If typed_kv operator supports scan natively. pub scan: bool, } diff --git a/core/src/types/capability.rs b/core/src/types/capability.rs index 6d3389c2b..b568b3ee8 100644 --- a/core/src/types/capability.rs +++ b/core/src/types/capability.rs @@ -46,90 +46,85 @@ use std::fmt::Debug; /// - Operation with limitations should be named like `batch_max_operations`. #[derive(Copy, Clone, Default)] pub struct Capability { - /// If operator supports stat , it will be true. + /// If operator supports stat. pub stat: bool, - /// If operator supports stat with if match , it will be true. + /// If operator supports stat with if match. pub stat_with_if_match: bool, - /// If operator supports stat with if none match , it will be true. + /// If operator supports stat with if none match. pub stat_with_if_none_match: bool, - /// If operator supports read , it will be true. + /// If operator supports read. pub read: bool, - /// If operator supports seek on returning reader , it will - /// be true. + /// If operator supports seek on returning reader. pub read_can_seek: bool, - /// If operator supports next on returning reader , it will - /// be true. + /// If operator supports next on returning reader. pub read_can_next: bool, - /// If operator supports read with range , it will be true. + /// If operator supports read with range. pub read_with_range: bool, - /// If operator supports read with if match , it will be true. + /// If operator supports read with if match. pub read_with_if_match: bool, - /// If operator supports read with if none match , it will be true. + /// If operator supports read with if none match. pub read_with_if_none_match: bool, - /// if operator supports read with override cache control , it will be true. + /// if operator supports read with override cache control. pub read_with_override_cache_control: bool, - /// if operator supports read with override content disposition , it will be true. + /// if operator supports read with override content disposition. pub read_with_override_content_disposition: bool, - /// if operator supports read with override content type , it will be true. + /// if operator supports read with override content type. pub read_with_override_content_type: bool, - /// If operator supports write , it will be true. + /// If operator supports write. pub write: bool, - /// If operator supports write by append, it will be true. + /// If operator supports write can be called in multi times. + pub write_can_multi: bool, + /// If operator supports write by append. pub write_can_append: bool, - /// If operator supports write with without content length, it will - /// be true. - /// - /// This feature also be called as `Unsized` write or streaming write. - pub write_without_content_length: bool, - /// If operator supports write with content type , it will be true. + /// If operator supports write with content type. pub write_with_content_type: bool, - /// If operator supports write with content disposition , it will be true. + /// If operator supports write with content disposition. pub write_with_content_disposition: bool, - /// If operator supports write with cache control , it will be true. + /// If operator supports write with cache control. pub write_with_cache_control: bool, - /// If operator supports create dir , it will be true. + /// If operator supports create dir. pub create_dir: bool, - /// If operator supports delete , it will be true. + /// If operator supports delete. pub delete: bool, - /// If operator supports copy , it will be true. + /// If operator supports copy. pub copy: bool, - /// If operator supports rename , it will be true. + /// If operator supports rename. pub rename: bool, - /// If operator supports list , it will be true. + /// If operator supports list. pub list: bool, - /// If backend supports list with limit, it will be true. + /// If backend supports list with limit. pub list_with_limit: bool, - /// If backend supports list with start after, it will be true. + /// If backend supports list with start after. pub list_with_start_after: bool, /// If backend support list with using slash as delimiter. pub list_with_delimiter_slash: bool, /// If backend supports list without delimiter. pub list_without_delimiter: bool, - /// If operator supports presign , it will be true. + /// If operator supports presign. pub presign: bool, - /// If operator supports presign read , it will be true. + /// If operator supports presign read. pub presign_read: bool, - /// If operator supports presign stat , it will be true. + /// If operator supports presign stat. pub presign_stat: bool, - /// If operator supports presign write , it will be true. + /// If operator supports presign write. pub presign_write: bool, - /// If operator supports batch , it will be true. + /// If operator supports batch. pub batch: bool, - /// If operator supports batch delete , it will be true. + /// If operator supports batch delete. pub batch_delete: bool, /// The max operations that operator supports in batch. pub batch_max_operations: Option<usize>, - /// If operator supports blocking , it will be true. + /// If operator supports blocking. pub blocking: bool, }
