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

Function MakeDictDecoder

cpp/src/parquet/decoder.cc:2531–2556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2529
2530namespace detail {
2531std::unique_ptr<Decoder> MakeDictDecoder(Type::type type_num,
2532 const ColumnDescriptor* descr,
2533 MemoryPool* pool) {
2534 switch (type_num) {
2535 case Type::BOOLEAN:
2536 ParquetException::NYI("Dictionary encoding not implemented for boolean type");
2537 case Type::INT32:
2538 return std::make_unique<DictDecoderImpl<Int32Type>>(descr, pool);
2539 case Type::INT64:
2540 return std::make_unique<DictDecoderImpl<Int64Type>>(descr, pool);
2541 case Type::INT96:
2542 return std::make_unique<DictDecoderImpl<Int96Type>>(descr, pool);
2543 case Type::FLOAT:
2544 return std::make_unique<DictDecoderImpl<FloatType>>(descr, pool);
2545 case Type::DOUBLE:
2546 return std::make_unique<DictDecoderImpl<DoubleType>>(descr, pool);
2547 case Type::BYTE_ARRAY:
2548 return std::make_unique<DictByteArrayDecoderImpl>(descr, pool);
2549 case Type::FIXED_LEN_BYTE_ARRAY:
2550 return std::make_unique<DictFLBADecoder>(descr, pool);
2551 default:
2552 break;
2553 }
2554 DCHECK(false) << "Should not be able to reach this code";
2555 return nullptr;
2556}
2557
2558} // namespace detail
2559

Callers

nothing calls this directly

Calls 1

NYIFunction · 0.85

Tested by

no test coverage detected