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

Method Serialize

cpp/src/parquet/column_writer.cc:2093–2103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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