Package org.apache.opendal
Class AsyncOperator
java.lang.Object
org.apache.opendal.NativeObject
org.apache.opendal.AsyncOperator
- All Implemented Interfaces:
AutoCloseable
AsyncOperator represents an underneath OpenDAL operator that
accesses data asynchronously.
-
Field Summary
Fields inherited from class org.apache.opendal.NativeObject
nativeHandle
-
Method Summary
Modifier and TypeMethodDescriptionblocking()
protected void
disposeInternal
(long handle) Deletes underlying native object pointer.Clone a new operator that is identical to this one.static AsyncOperator
Construct an OpenDAL operator:static AsyncOperator
Construct an OpenDAL operator:presignRead
(String path, Duration duration) presignStat
(String path, Duration duration) presignWrite
(String path, Duration duration) CompletableFuture<byte[]>
Methods inherited from class org.apache.opendal.NativeObject
close, isDisposed
-
Field Details
-
info
-
-
Method Details
-
of
Construct an OpenDAL operator:You can find all possible schemes here and see what config options each service supports.
- Parameters:
schema
- the name of the underneath service to access data from.map
- a map of properties to construct the underneath operator.
-
of
Construct an OpenDAL operator:You can find all possible schemes here and see what config options each service supports.
- Parameters:
schema
- the name of the underneath service to access data from.map
- a map of properties to construct the underneath operator.executor
- the underneath executor to run async operations;null
to use a default global executor.
-
duplicate
Clone a new operator that is identical to this one. The new operator has its own lifecycle.Since an operator will release all its resource and "flush" on lifecycle end, this method is suitable to create a narrowed "scope" while avoiding creating a brand-new operator for each scope.
- Returns:
- the cloned operator.
-
layer
-
blocking
-
write
-
write
-
append
-
append
-
stat
-
read
-
presignRead
-
presignWrite
-
presignStat
-
delete
-
createDir
-
copy
-
rename
-
removeAll
-
list
-
disposeInternal
protected void disposeInternal(long handle) Description copied from class:NativeObject
Deletes underlying native object pointer.- Specified by:
disposeInternal
in classNativeObject
- Parameters:
handle
- to the native object pointer
-