MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / printBestOrder

Method printBestOrder

src/jrd/optimizer/InnerJoin.cpp:708–726  ·  view source on GitHub ↗

Dump finally selected stream order

Source from the content-addressed store, hash-verified

706#ifdef OPT_DEBUG
707// Dump finally selected stream order
708void InnerJoin::printBestOrder() const
709{
710 if (bestStreams.getCount() < 2)
711 return;
712
713 optimizer->printf(" best order, streams:");
714
715 const auto end = bestStreams.end();
716 for (auto iter = bestStreams.begin(); iter != end; iter++)
717 {
718 const auto name = optimizer->getStreamName(iter->number);
719 optimizer->printf(" %u (%s)", iter->number, name.c_str());
720
721 if (iter != end - 1)
722 optimizer->printf(",");
723 }
724
725 optimizer->printf("\n");
726}
727
728// Dump currently passed streams to a debug file
729void InnerJoin::printFoundOrder(StreamType position,

Callers

nothing calls this directly

Calls 6

getStreamNameMethod · 0.80
getCountMethod · 0.45
printfMethod · 0.45
endMethod · 0.45
beginMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected