diff --git a/bindings/c/include/opendal.h b/bindings/c/include/opendal.h index 03e3eda759ba..76f84f93341e 100644 --- a/bindings/c/include/opendal.h +++ b/bindings/c/include/opendal.h @@ -515,14 +515,6 @@ typedef struct opendal_capability { * If it is not set, this will be zero */ uintptr_t write_multi_min_size; - /** - * write_multi_align_size is the align size that services required in write_multi. - * - * For example, Google GCS requires align size to 256KiB in write_multi. - * - * If it is not set, this will be zero - */ - uintptr_t write_multi_align_size; /** * write_total_max_size is the max size that services support in write_total. * diff --git a/bindings/c/src/operator_info.rs b/bindings/c/src/operator_info.rs index 4e42962a789d..db96e99fedf3 100644 --- a/bindings/c/src/operator_info.rs +++ b/bindings/c/src/operator_info.rs @@ -89,12 +89,6 @@ pub struct opendal_capability { /// /// If it is not set, this will be zero pub write_multi_min_size: usize, - /// write_multi_align_size is the align size that services required in write_multi. - /// - /// For example, Google GCS requires align size to 256KiB in write_multi. - /// - /// If it is not set, this will be zero - pub write_multi_align_size: usize, /// write_total_max_size is the max size that services support in write_total. /// /// For example, Cloudflare D1 supports 1MB as max in write_total. @@ -253,7 +247,6 @@ impl From for opendal_capability { write_with_cache_control: value.write_with_cache_control, write_multi_max_size: value.write_multi_max_size.unwrap_or(0), write_multi_min_size: value.write_multi_min_size.unwrap_or(0), - write_multi_align_size: value.write_multi_align_size.unwrap_or(0), write_total_max_size: value.write_total_max_size.unwrap_or(0), create_dir: value.create_dir, delete: value.delete, diff --git a/bindings/go/operator_info.go b/bindings/go/operator_info.go index 4a3c32afe305..d9264b6c869e 100644 --- a/bindings/go/operator_info.go +++ b/bindings/go/operator_info.go @@ -176,11 +176,6 @@ func (c *Capability) WriteMultiMaxSize() uint { func (c *Capability) WriteMultiMinSize() uint { return c.inner.writeMultiMinSize } - -func (c *Capability) WriteMultiAlignSize() uint { - return c.inner.writeMultiAlignSize -} - func (c *Capability) WriteTotalMaxSize() uint { return c.inner.writeTotalMaxSize } diff --git a/bindings/go/types.go b/bindings/go/types.go index 5751f0cdb05d..d5bd92495d29 100644 --- a/bindings/go/types.go +++ b/bindings/go/types.go @@ -147,7 +147,6 @@ var ( &ffi.TypeUint8, // write_with_cache_control &ffi.TypePointer, // write_multi_max_size &ffi.TypePointer, // write_multi_min_size - &ffi.TypePointer, // write_multi_align_size &ffi.TypePointer, // write_total_max_size &ffi.TypeUint8, // create_dir &ffi.TypeUint8, // delete @@ -189,7 +188,6 @@ type opendalCapability struct { writeWithCacheControl uint8 writeMultiMaxSize uint writeMultiMinSize uint - writeMultiAlignSize uint writeTotalMaxSize uint createDir uint8 delete uint8 diff --git a/bindings/java/src/lib.rs b/bindings/java/src/lib.rs index 47113ae74a11..a9fef7e6506f 100644 --- a/bindings/java/src/lib.rs +++ b/bindings/java/src/lib.rs @@ -94,7 +94,7 @@ fn make_operator_info<'a>(env: &mut JNIEnv<'a>, info: OperatorInfo) -> Result(env: &mut JNIEnv<'a>, cap: Capability) -> Result> { let capability = env.new_object( "org/apache/opendal/Capability", - "(ZZZZZZZZZZZZZZZJJJZZZZZZZZZZZZZZJZ)V", + "(ZZZZZZZZZZZZZZZJJZZZZZZZZZZZZZZJZ)V", &[ JValue::Bool(cap.stat as jboolean), JValue::Bool(cap.stat_with_if_match as jboolean), @@ -113,7 +113,6 @@ fn make_capability<'a>(env: &mut JNIEnv<'a>, cap: Capability) -> Result Option { self.0.write_multi_min_size } - - /// write_multi_align_size is the align size that services required in write_multi. - /// - /// For example, Google GCS requires align size to 256KiB in write_multi. - #[napi(getter)] - pub fn write_multi_align_size(&self) -> Option { - self.0.write_multi_align_size - } - /// write_total_max_size is the max size that services support in write_total. /// /// For example, Cloudflare D1 supports 1MB as max in write_total. diff --git a/bindings/python/python/opendal/__init__.pyi b/bindings/python/python/opendal/__init__.pyi index 64fedbbf09c6..2a2ae246b3f8 100644 --- a/bindings/python/python/opendal/__init__.pyi +++ b/bindings/python/python/opendal/__init__.pyi @@ -182,7 +182,6 @@ class Capability: write_with_cache_control: bool write_multi_max_size: Optional[int] write_multi_min_size: Optional[int] - write_multi_align_size: Optional[int] write_total_max_size: Optional[int] create_dir: bool diff --git a/bindings/python/src/capability.rs b/bindings/python/src/capability.rs index bcd98b32c110..6cc76e153f4d 100644 --- a/bindings/python/src/capability.rs +++ b/bindings/python/src/capability.rs @@ -63,10 +63,6 @@ pub struct Capability { /// /// For example, AWS S3 requires at least 5MiB in write_multi expect the last one. pub write_multi_min_size: Option, - /// write_multi_align_size is the align size that services required in write_multi. - /// - /// For example, Google GCS requires align size to 256KiB in write_multi. - pub write_multi_align_size: Option, /// write_total_max_size is the max size that services support in write_total. /// /// For example, Cloudflare D1 supports 1MB as max in write_total. @@ -135,7 +131,6 @@ impl Capability { write_with_cache_control: capability.write_with_cache_control, write_multi_max_size: capability.write_multi_max_size, write_multi_min_size: capability.write_multi_min_size, - write_multi_align_size: capability.write_multi_align_size, write_total_max_size: capability.write_total_max_size, create_dir: capability.create_dir, delete: capability.delete, diff --git a/bindings/ruby/src/capability.rs b/bindings/ruby/src/capability.rs index 01a9676b2a97..a2402dceb51c 100644 --- a/bindings/ruby/src/capability.rs +++ b/bindings/ruby/src/capability.rs @@ -79,7 +79,6 @@ define_accessors!(Capability, { write_with_user_metadata: bool, write_multi_max_size: Option, write_multi_min_size: Option, - write_multi_align_size: Option, write_total_max_size: Option, create_dir: bool, delete: bool, @@ -130,7 +129,6 @@ pub fn include(gem_module: &RModule) -> Result<(), Error> { write_with_user_metadata, write_multi_max_size, write_multi_min_size, - write_multi_align_size, write_total_max_size, create_dir, delete, diff --git a/core/src/types/capability.rs b/core/src/types/capability.rs index c81ada644e2a..b30cbf880f90 100644 --- a/core/src/types/capability.rs +++ b/core/src/types/capability.rs @@ -140,9 +140,6 @@ pub struct Capability { /// Minimum size required for multipart uploads (except for the last part). /// For example, AWS S3 requires at least 5MiB per part. pub write_multi_min_size: Option, - /// Required size alignment for multipart uploads. - /// For example, Google GCS requires 256KiB alignment. - pub write_multi_align_size: Option, /// Maximum total size supported for write operations. /// For example, Cloudflare D1 has a 1MB total size limit. pub write_total_max_size: Option,