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

Method Initialize

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

Source from the content-addressed store, hash-verified

320 wrapped_decoder_(type, options, trie_cache) {}
321
322 Status Initialize() {
323 RETURN_NOT_OK(wrapped_decoder_.Initialize());
324 for (int i = 0; i < 256; ++i) {
325 mapping_[i] = i;
326 }
327 mapping_[options_.decimal_point] = '.';
328 mapping_['.'] = options_.decimal_point; // error out on standard decimal point
329 temp_.resize(30);
330 return ValueDecoder::Initialize();
331 }
332
333 Status Decode(const uint8_t* data, uint32_t size, bool quoted, value_type* out) {
334 if (ARROW_PREDICT_FALSE(size > temp_.size())) {

Callers

nothing calls this directly

Calls 3

resizeMethod · 0.80
InitializeFunction · 0.50
InitializeMethod · 0.45

Tested by

no test coverage detected