Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Jun 24, 2024
1 parent 7184fb3 commit 65c3d53
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cpp/src/arrow/record_batch.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,20 +310,22 @@ class ARROW_EXPORT RecordBatchReader {
/// \brief Read the next record batch in the stream. Return null for batch
/// when reaching end of stream
///
/// example:
/// Example:
///
/// ```
/// std::shared_ptr<RecordBatch> batch;
/// while (true) {
/// std::shared_ptr<RecordBatch> batch;
/// ARROW_RETURN_NOT_OK(reader->ReadNext(&batch));
/// if (batch == nullptr) {
/// if (!batch) {
/// break;
/// }
/// // handling the `batch`
/// // handling the `batch`, the `batch->num_rows()`
/// // might be 0.
/// }
/// ```
///
/// \param[out] batch the next loaded batch, null at end of stream. Return
/// a empty batch doesn't means the end of stream, it could be a empty batch.
/// \param[out] batch the next loaded batch, null at end of stream. Returning
/// an empty batch doesn't mean the end of stream because it is valid data.
/// \return Status
virtual Status ReadNext(std::shared_ptr<RecordBatch>* batch) = 0;

Expand Down

0 comments on commit 65c3d53

Please sign in to comment.