| 23 | namespace orc { |
| 24 | |
| 25 | SchemaEvolution::SchemaEvolution(const std::shared_ptr<Type>& readType, const Type* fileType) |
| 26 | : readType_(readType) { |
| 27 | if (readType_) { |
| 28 | buildConversion(readType_.get(), fileType); |
| 29 | } else { |
| 30 | for (uint64_t i = 0; i <= fileType->getMaximumColumnId(); ++i) { |
| 31 | safePPDConversionMap_.insert(i); |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | const Type* SchemaEvolution::getReadType(const Type& fileType) const { |
| 37 | auto ret = readTypeMap_.find(fileType.getColumnId()); |
nothing calls this directly
no test coverage detected