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

Function GetValue

cpp/src/arrow/array/builder_primitive.h:475–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473 /// @tparam T arrow::util::Float16 or value_type (uint16_t)
474 template <typename T = BaseClass::value_type>
475 T GetValue(int64_t index) const {
476 static_assert(std::is_same_v<T, BaseClass::value_type> ||
477 std::is_same_v<T, arrow::util::Float16>);
478 if constexpr (std::is_same_v<T, BaseClass::value_type>) {
479 return BaseClass::GetValue(index);
480 } else {
481 return Float16::FromBits(BaseClass::GetValue(index));
482 }
483 }
484};
485
486/// @}

Callers 1

operator[]Method · 0.70

Calls 1

FromBitsFunction · 0.85

Tested by

no test coverage detected