Dump finally selected stream order
| 706 | #ifdef OPT_DEBUG |
| 707 | // Dump finally selected stream order |
| 708 | void 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 |
| 729 | void InnerJoin::printFoundOrder(StreamType position, |