MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / serializeHeader

Function serializeHeader

src/Processors/QueryPlan/Serialization.cpp:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static void serializeHeader(const Block & header, WriteBuffer & out)
30{
31 /// Write only names and types.
32 /// Constants should be filled by step.
33
34 writeVarUInt(header.columns(), out);
35 for (const auto & column : header)
36 {
37 writeStringBinary(column.name, out);
38 encodeDataType(column.type, out);
39 }
40}
41
42static Block deserializeHeader(ReadBuffer & in)
43{

Callers 4

finalizeMethod · 0.85
TESTFunction · 0.85
serializeMethod · 0.85

Calls 4

writeVarUIntFunction · 0.85
writeStringBinaryFunction · 0.85
encodeDataTypeFunction · 0.85
columnsMethod · 0.80

Tested by 1

TESTFunction · 0.68