MCPcopy
hub / github.com/grafana/tempo / avgSizePerRowGroup

Method avgSizePerRowGroup

cmd/tempo-cli/cmd-analyse-block.go:642–646  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
642func (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
648type makeIterFn func(columnName string, predicate parquetquery.Predicate, selectAs string) parquetquery.Iterator
649

Callers 4

ToDedicatedColumnsMethod · 0.80
printFullSummaryFunction · 0.80
printCliArgsFunction · 0.80

Calls 2

dictionarySizeMethod · 0.95
totalOccurrencesMethod · 0.95

Tested by

no test coverage detected