MCPcopy Create free account
hub / github.com/ByConity/ByConity / deserializeHeaderFromProto

Function deserializeHeaderFromProto

src/QueryPlan/PlanSerDerHelper.cpp:191–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191Block deserializeHeaderFromProto(const Protos::Block & proto)
192{
193 std::vector<NameAndTypePair> pairs;
194 for (const auto & pair_pb : proto.names_and_types())
195 {
196 NameAndTypePair pair;
197 pair.fillFromProto(pair_pb);
198 pairs.emplace_back(std::move(pair));
199 }
200 return Block(std::move(pairs));
201}
202
203
204QueryPlanStepPtr deserializePlanStep(ReadBuffer & buf, ContextPtr context)

Callers 6

fillFromProtoMethod · 0.85
TEST_FFunction · 0.85
fromProtoMethod · 0.85
fromProtoBaseMethod · 0.85

Calls 3

BlockClass · 0.50
fillFromProtoMethod · 0.45
emplace_backMethod · 0.45

Tested by 1

TEST_FFunction · 0.68