In java binding, how to know what Construct operator
requires?
#5402
-
// Configure service
final Map<String, String> conf = new HashMap<>();
conf.put("root", "/tmp");
// Construct operator
final Operator op = Operator.of("fs", conf);
// Write data
op.write("hello.txt", "Hello, World!").join();
// Read data
final byte[] bs = op.read("hello.txt").join();
// Delete
op.delete("hello.txt").join();
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Not the Rust source code, but the API docs: https://docs.rs/opendal/latest/opendal/services/index.html For example, https://docs.rs/opendal/latest/opendal/services/struct.S3.html will tell you the options that can be used for constructing an S3 operator. |
Beta Was this translation helpful? Give feedback.
-
Thank you @linghengqian for reporting this. This is an issue we are still working on. We have developed a new configuration system and will implement it for bindings so that all users can have a static list of available configuration values. Until we have completed that, users may need to refer to the Rust documentation for the available configuration values. Apologies for the inconvenience. |
Beta Was this translation helpful? Give feedback.
Not the Rust source code, but the API docs: https://docs.rs/opendal/latest/opendal/services/index.html
For example, https://docs.rs/opendal/latest/opendal/services/struct.S3.html will tell you the options that can be used for constructing an S3 operator.