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

Method getInputStream

src/DataStreams/BlockIO.cpp:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34BlockInputStreamPtr BlockIO::getInputStream()
35{
36 if (out)
37 throw Exception("Cannot get input stream from BlockIO because output stream is not empty",
38 ErrorCodes::LOGICAL_ERROR);
39
40 if (in)
41 return in;
42
43 if (pipeline.initialized())
44 return std::make_shared<PipelineExecutingBlockInputStream>(std::move(pipeline));
45
46 throw Exception("Cannot get input stream from BlockIO because query pipeline was not initialized",
47 ErrorCodes::LOGICAL_ERROR);
48}
49
50void BlockIO::reset()
51{

Callers 15

getShardPartitionsMethod · 0.80
writeWithProjectionsMethod · 0.80
generateInputFunction · 0.80
extractPathImplFunction · 0.80
completeQueryMethod · 0.80
writeIntoLiveViewMethod · 0.80
writeTempPartMethod · 0.80
writeWithProjectionsMethod · 0.80

Calls 2

ExceptionClass · 0.50
initializedMethod · 0.45

Tested by

no test coverage detected