zhaohaidao commented on code in PR #5617:
URL: https://github.com/apache/opendal/pull/5617#discussion_r1952906637
##########
core/src/services/hdfs_native/lister.rs:
##########
@@ -15,28 +15,27 @@
// specific language governing permissions and limitations
// under the License.
-use std::sync::Arc;
+use std::collections::VecDeque;
use crate::raw::oio;
-use crate::raw::oio::Entry;
-use crate::*;
+use crate::Result;
pub struct HdfsNativeLister {
- _path: String,
- _client: Arc<hdfs_native::Client>,
+ entries: VecDeque<oio::Entry>,
}
impl HdfsNativeLister {
- pub fn new(path: String, client: Arc<hdfs_native::Client>) -> Self {
- HdfsNativeLister {
- _path: path,
- _client: client,
- }
+ pub fn new(entries: VecDeque<oio::Entry>) -> Self {
+ HdfsNativeLister { entries }
}
}
impl oio::List for HdfsNativeLister {
- async fn next(&mut self) -> Result<Option<Entry>> {
- todo!()
+ async fn next(&mut self) -> Result<Option<oio::Entry>> {
Review Comment:
Makes sense
--
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]