MCPcopy Create free account
hub / github.com/apache/orc / SchemaEvolution

Method SchemaEvolution

c++/src/SchemaEvolution.cc:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace 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());

Callers

nothing calls this directly

Calls 3

getMaximumColumnIdMethod · 0.80
getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected