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

Function AppendUnionBatch

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

Source from the content-addressed store, hash-verified

311}
312
313Status AppendUnionBatch(const liborc::Type* type,
314 liborc::ColumnVectorBatch* column_vector_batch, int64_t offset,
315 int64_t length, ArrayBuilder* abuilder) {
316 if (abuilder->type()->id() == Type::SPARSE_UNION) {
317 return AppendUnionBatchInternal<SparseUnionBuilder>(type, column_vector_batch, offset,
318 length, abuilder);
319 }
320 if (abuilder->type()->id() == Type::DENSE_UNION) {
321 return AppendUnionBatchInternal<DenseUnionBuilder>(type, column_vector_batch, offset,
322 length, abuilder);
323 }
324 return Status::Invalid("Invalid union type");
325}
326
327} // namespace
328

Callers 1

AppendBatchFunction · 0.85

Calls 3

InvalidFunction · 0.50
idMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected