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

Function Fixup

cpp/src/parquet/arrow/path_internal.cc:697–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695};
696
697PathInfo Fixup(PathInfo info) {
698 // We only need to fixup the path if there were repeated
699 // elements on it.
700 if (info.max_rep_level == 0) {
701 return info;
702 }
703 FixupVisitor visitor;
704 visitor.max_rep_level = info.max_rep_level;
705 if (visitor.max_rep_level > 0) {
706 visitor.rep_level_if_null = 0;
707 }
708 for (size_t x = 0; x < info.path.size(); x++) {
709 std::visit(visitor, info.path[x]);
710 }
711 return info;
712}
713
714class PathBuilder {
715 public:

Callers 1

AddTerminalInfoMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected