| 416 | } |
| 417 | |
| 418 | arrow::Status |
| 419 | Flush() override |
| 420 | { |
| 421 | GError *error = NULL; |
| 422 | auto succeeded = g_output_stream_flush(output_stream_, NULL, &error); |
| 423 | if (succeeded) { |
| 424 | return arrow::Status::OK(); |
| 425 | } else { |
| 426 | return garrow_error_to_status(error, |
| 427 | arrow::StatusCode::IOError, |
| 428 | "[gio-output-stream][flush]"); |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | private: |
| 433 | GOutputStream *output_stream_; |
no test coverage detected