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

Method printStartOrder

src/jrd/optimizer/InnerJoin.cpp:763–789  ·  view source on GitHub ↗

Dump finally selected stream order

Source from the content-addressed store, hash-verified

761
762// Dump finally selected stream order
763void InnerJoin::printStartOrder() const
764{
765 bool found = false;
766
767 const auto end = innerStreams.end();
768 for (auto iter = innerStreams.begin(); iter != end; iter++)
769 {
770 const auto innerStream = *iter;
771 if (!innerStream->used)
772 {
773 if (!found)
774 {
775 optimizer->printf("Start join order, streams:");
776 found = true;
777 }
778
779 const auto name = optimizer->getStreamName(innerStream->number);
780 optimizer->printf(" %u (%s) base cost (%1.2f)",
781 innerStream->number, name.c_str(), innerStream->baseCost);
782
783 if (iter != end - 1)
784 optimizer->printf(",");
785 }
786 }
787
788 optimizer->printf("\n");
789}
790#endif

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected