Dump finally selected stream order
| 761 | |
| 762 | // Dump finally selected stream order |
| 763 | void 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 |
nothing calls this directly
no test coverage detected