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

Method DecimalValueDecoder

cpp/src/arrow/csv/converter.cc:277–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275 using value_type = Decimal128;
276
277 explicit DecimalValueDecoder(const std::shared_ptr<DataType>& type,
278 const ConvertOptions& options, const TrieCache* trie_cache)
279 : ValueDecoder(type, options, trie_cache),
280 decimal_type_(internal::checked_cast<const DecimalType&>(*type_)),
281 type_precision_(decimal_type_.precision()),
282 type_scale_(decimal_type_.scale()) {}
283
284 Status Decode(const uint8_t* data, uint32_t size, bool quoted, value_type* out) {
285 TrimWhiteSpace(&data, &size);

Callers

nothing calls this directly

Calls 2

precisionMethod · 0.45
scaleMethod · 0.45

Tested by

no test coverage detected