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

Method FormatValue

cpp/src/arrow/array/array_decimal.cc:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43std::string Decimal32Array::FormatValue(int64_t i) const {
44 const auto& type_ = checked_cast<const Decimal32Type&>(*type());
45 const Decimal32 value(GetValue(i));
46 return value.ToString(type_.scale());
47}
48
49// ----------------------------------------------------------------------
50// Decimal64

Callers 2

WriteDataValuesMethod · 0.45
VisitMethod · 0.45

Calls 4

typeFunction · 0.70
GetValueFunction · 0.70
ToStringMethod · 0.45
scaleMethod · 0.45

Tested by

no test coverage detected