lexcao commented on issue #2069:
URL: 
https://github.com/apache/incubator-opendal/issues/2069#issuecomment-1518680861

   Thanks.
   I find there is a option for batch parameter `max_batch_operations` in 
`AccessorInfo`
   
   So the `list_with_start_after` is added to the `AccessorInfo`?
   Then to add a warning log when the accessor does not support the arg but is 
presented in the `OpList` when calling `list_with` method.
   
   
   ---
   I just found there is a way to support custom args by leveraging 
`AccessorCapability`
   ```
   enum AccessorCapability {
       List { start_after: bool }
       ...
   }
   ```
   This needs to extend `AccessorCapability` to support this since currently it 
is just `u32` enum.
   
   With that, the `max_batch_operations` could be replaced by
   ```
   Batch { max_operations: uszie }
   ```
   
   But this is another topic, I don't know if this is a good practice or not.


-- 
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]

Reply via email to