Skip to content

Commit

Permalink
add callback option to IO interface (#2001)
Browse files Browse the repository at this point in the history
Enable user to process the results of `ReadTable` in a streaming way
---------
Signed-off-by: siyuan0322 <[email protected]>
  • Loading branch information
siyuan0322 authored Oct 14, 2024
1 parent 19badf1 commit 728477c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/io/io/i_io_adaptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ class IIOAdaptor {
return Status::OK();
}

virtual Status ReadTable(
std::function<void(std::shared_ptr<arrow::RecordBatch>)> callback) {
return Status::OK();
}

virtual Status WriteTable(std::shared_ptr<arrow::Table> table) {
return Status::OK();
}
Expand Down

0 comments on commit 728477c

Please sign in to comment.