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

Method CompressBodyBuffers

cpp/src/arrow/ipc/writer.cc:238–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236 }
237
238 Status CompressBodyBuffers() {
239 RETURN_NOT_OK(
240 internal::CheckCompressionSupported(options_.codec->compression_type()));
241
242 auto CompressOne = [&](size_t i) {
243 if (out_->body_buffers[i]->size() > 0) {
244 RETURN_NOT_OK(CompressBuffer(*out_->body_buffers[i], options_.codec.get(),
245 &out_->body_buffers[i]));
246 }
247 return Status::OK();
248 };
249
250 return ::arrow::internal::OptionalParallelFor(
251 options_.use_threads, static_cast<int>(out_->body_buffers.size()), CompressOne);
252 }
253
254 Status Assemble(const RecordBatch& batch) {
255 if (!field_nodes_.empty()) {

Callers

nothing calls this directly

Calls 6

OptionalParallelForFunction · 0.85
OKFunction · 0.50
compression_typeMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected