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

Method Serialize

cpp/src/parquet/column_writer.cc:2094–2104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2092 using ArrayType = typename ::arrow::TypeTraits<ArrowType>::ArrayType;
2093 using ParquetCType = typename ParquetType::c_type;
2094 Status Serialize(const ArrayType& array, ArrowWriteContext*, ParquetCType* out) {
2095 const ArrowCType* input = array.raw_values();
2096 if (array.null_count() > 0) {
2097 for (int64_t i = 0; i < array.length(); i++) {
2098 out[i] = static_cast<ParquetCType>(input[i]);
2099 }
2100 } else {
2101 std::copy(input, input + array.length(), out);
2102 }
2103 return Status::OK();
2104 }
2105};
2106
2107template <typename ParquetType>

Callers 3

WriteDictionaryPageMethod · 0.45
WriteDataPageMethod · 0.45
WriteArrowSerializeMethod · 0.45

Calls 4

OKFunction · 0.50
raw_valuesMethod · 0.45
null_countMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected