Package org.apache.opendal
Class Operator
java.lang.Object
org.apache.opendal.NativeObject
org.apache.opendal.Operator
- All Implemented Interfaces:
AutoCloseable
Operator represents an underneath OpenDAL operator that accesses data synchronously.
-
Field Summary
FieldsFields inherited from class org.apache.opendal.NativeObject
nativeHandle -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreateInputStream(String path) createOutputStream(String path) createOutputStream(String path, int maxBytes) voidprotected voiddisposeInternal(long handle) Deletes underlying native object pointer.list(String path, ListOptions options) static OperatorConstruct an OpenDAL blocking operator:static Operatorof(ServiceConfig config) Construct an OpenDAL blocking operator.byte[]byte[]byte[]read(String path, ReadOptions options) voidvoidstat(String path, StatOptions options) voidvoidwrite(String path, byte[] content, WriteOptions options) voidvoidwrite(String path, String content, WriteOptions options) Methods inherited from class org.apache.opendal.NativeObject
close, isDisposed
-
Field Details
-
info
-
-
Method Details
-
of
Construct an OpenDAL blocking operator.- Parameters:
config- the config of the underneath service to access data from.
-
of
Construct an OpenDAL blocking operator:You can find all possible schemes here and see what config options each service supports.
- Parameters:
scheme- the name of the underneath service to access data from.map- a map of properties to construct the underneath operator.
-
duplicate
- Returns:
- the cloned blocking operator.
- See Also:
-
write
-
write
-
write
-
write
-
createOutputStream
-
createOutputStream
-
read
-
read
-
read
-
createInputStream
-
delete
-
stat
-
stat
-
createDir
-
copy
-
rename
-
removeAll
-
list
-
list
-
disposeInternal
protected void disposeInternal(long handle) Description copied from class:NativeObjectDeletes underlying native object pointer.- Specified by:
disposeInternalin classNativeObject- Parameters:
handle- to the native object pointer
-