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

Method writePrefix

src/Processors/Formats/Impl/JSONRowOutputFormat.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27void JSONRowOutputFormat::writePrefix()
28{
29 JSONUtils::writeObjectStart(*ostr);
30 JSONUtils::writeMetadata(names, types, settings, *ostr);
31 JSONUtils::writeFieldDelimiter(*ostr, 2);
32 JSONUtils::writeArrayStart(*ostr, 1, "data");
33}
34
35
36void JSONRowOutputFormat::writeField(const IColumn & column, const ISerialization & serialization, size_t row_num)

Callers

nothing calls this directly

Calls 4

writeObjectStartFunction · 0.85
writeMetadataFunction · 0.85
writeFieldDelimiterFunction · 0.85
writeArrayStartFunction · 0.85

Tested by

no test coverage detected