MCPcopy Create free account
hub / github.com/apache/arrow / FlushToSink

Method FlushToSink

cpp/src/arrow/csv/writer.cc:595–598  ·  view source on GitHub ↗

GH-36889: Flush buffer to sink and clear it to avoid stale content being written again if the next batch is empty.

Source from the content-addressed store, hash-verified

593 // GH-36889: Flush buffer to sink and clear it to avoid stale content
594 // being written again if the next batch is empty.
595 Status FlushToSink() {
596 RETURN_NOT_OK(sink_->Write(data_buffer_));
597 return data_buffer_->Resize(0, /*shrink_to_fit=*/false);
598 }
599
600 int64_t CalculateHeaderSize(QuotingStyle quoting_style) const {
601 int64_t header_length = 0;

Callers

nothing calls this directly

Calls 2

WriteMethod · 0.45
ResizeMethod · 0.45

Tested by

no test coverage detected