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

Function WriteFixedSizeBinaryBatch

cpp/src/arrow/adapters/orc/util.cc:690–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690Status WriteFixedSizeBinaryBatch(const Array& array, int64_t orc_offset,
691 liborc::ColumnVectorBatch* column_vector_batch) {
692 const FixedSizeBinaryArray& array_(checked_cast<const FixedSizeBinaryArray&>(array));
693 auto batch = checked_cast<liborc::StringVectorBatch*>(column_vector_batch);
694 if (array.null_count()) {
695 batch->hasNulls = true;
696 }
697 FixedSizeBinaryAppender appender{array_, batch, orc_offset, 0, array_.byte_width()};
698 ArraySpanVisitor<FixedSizeBinaryType> visitor;
699 RETURN_NOT_OK(visitor.Visit(*array_.data(), &appender));
700 return Status::OK();
701}
702
703Status WriteStructBatch(const Array& array, int64_t orc_offset,
704 liborc::ColumnVectorBatch* column_vector_batch) {

Callers 1

WriteBatchFunction · 0.85

Calls 5

OKFunction · 0.50
null_countMethod · 0.45
byte_widthMethod · 0.45
VisitMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected