| 818 | } |
| 819 | |
| 820 | func printSimpleSummary(scope string, maxAttr int, summary attributeSummary) { |
| 821 | if maxAttr > len(summary.attributes) { |
| 822 | maxAttr = len(summary.attributes) |
| 823 | } |
| 824 | |
| 825 | fmt.Println("") |
| 826 | attrList := topN(maxAttr, summary.attributes) |
| 827 | fmt.Printf("%s attributes: ", scope) |
| 828 | for _, a := range attrList { |
| 829 | fmt.Printf("\"%s\", ", a.name) |
| 830 | } |
| 831 | fmt.Println("") |
| 832 | } |
| 833 | |
| 834 | func printFullSummary(scope string, settings heuristicSettings, summary attributeSummary, numRowGroups int) error { |
| 835 | var ( |