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

Method WriteDataValues

cpp/src/arrow/integration/json_internal.cc:500–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498 template <typename ArrayType, typename TypeClass = typename ArrayType::TypeClass,
499 typename CType = typename TypeClass::c_type>
500 enable_if_t<is_physical_integer_type<TypeClass>::value &&
501 sizeof(CType) != sizeof(int64_t)>
502 WriteDataValues(const ArrayType& arr) {
503 static const std::string null_string = "0";
504 for (int64_t i = 0; i < arr.length(); ++i) {
505 if (arr.IsValid(i)) {
506 writer_->Int64(arr.Value(i));
507 } else {
508 WriteRawNumber(null_string);
509 }
510 }
511 }
512
513 template <typename ArrayType, typename TypeClass = typename ArrayType::TypeClass,
514 typename CType = typename TypeClass::c_type>

Callers

nothing calls this directly

Calls 15

HexEncodeFunction · 0.85
ToIntegerStringMethod · 0.80
lengthMethod · 0.45
IsValidMethod · 0.45
Int64Method · 0.45
ValueMethod · 0.45
StringMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
raw_valuesMethod · 0.45
GetViewMethod · 0.45
StartObjectMethod · 0.45

Tested by

no test coverage detected