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

Method PutBinaryArray

cpp/src/parquet/encoder.cc:614–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612
613 template <typename ArrayType>
614 void PutBinaryArray(const ArrayType& array) {
615 PARQUET_THROW_NOT_OK(::arrow::VisitArraySpanInline<typename ArrayType::TypeClass>(
616 *array.data(),
617 [&](::std::string_view view) {
618 if (ARROW_PREDICT_FALSE(view.size() > kMaxByteArraySize)) {
619 return Status::Invalid(
620 "Parquet cannot store strings with size 2GB or more, got: ", view.size());
621 }
622 PutByteArray(view.data(), static_cast<uint32_t>(view.size()));
623 return Status::OK();
624 },
625 []() { return Status::OK(); }));
626 }
627
628 template <typename ArrayType>
629 void PutBinaryDictionaryArray(const ArrayType& array) {

Callers

nothing calls this directly

Calls 4

InvalidFunction · 0.50
OKFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected