tisonkun commented on PR #3392:
URL:
https://github.com/apache/incubator-opendal/pull/3392#issuecomment-1781436319
... and something like -
```java
public static Operator of(String schema, Map<String, String> map,
List<NativeLayer> layers) {
final long nativeHandle = constructor(schema, map);
final OperatorInfo info = makeOperatorInfo(nativeHandle);
Operator op = new Operator(nativeHandle, info);
for (NativeLayer layer : layers) {
op = new Operator(layer.layer(op.nativeHandle), info);
}
return op;
}
```
If as @Xuanwo stated, layer to be outside of constructor API but standalone
API, it can be a bit complicated. FYI, in Rust core, `BlockingOperator` cannot
be layered but always construct from a (layered) op. I highly suspect the
scenario to layer a op after it's constructed and used.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]