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

Method getHeader

src/DataStreams/PushingToViewsBlockOutputStream.cpp:258–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257
258Block PushingToViewsBlockOutputStream::getHeader() const
259{
260 /// If we don't write directly to the destination
261 /// then expect that we're inserting with precalculated virtual columns
262 if (output)
263 return metadata_snapshot->getSampleBlock();
264 else
265 return metadata_snapshot->getSampleBlockWithVirtuals(storage->getVirtuals());
266}
267
268
269void PushingToViewsBlockOutputStream::write(const Block & block)

Callers 2

processMethod · 0.45

Calls 3

getSampleBlockMethod · 0.45
getVirtualsMethod · 0.45

Tested by

no test coverage detected