avgSizePerRowGroup is the average number of bytes used for this attribute per row group, assuming a compressed dictionary and page content of 1 byte per row.
(numRowGroups int)
| 640 | // avgSizePerRowGroup is the average number of bytes used for this attribute per row group, assuming a |
| 641 | // compressed dictionary and page content of 1 byte per row. |
| 642 | func (c cardinality) avgSizePerRowGroup(numRowGroups int) uint64 { |
| 643 | dict := c.dictionarySize() |
| 644 | content := c.totalOccurrences() |
| 645 | return uint64((float64(dict) + float64(content)) / float64(numRowGroups)) |
| 646 | } |
| 647 | |
| 648 | type makeIterFn func(columnName string, predicate parquetquery.Predicate, selectAs string) parquetquery.Iterator |
| 649 |
no test coverage detected