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

Method KeepPage

tempodb/encoding/vparquet4/block_traceql.go:3902–3913  ·  view source on GitHub ↗
(page parquet.Page)

Source from the content-addressed store, hash-verified

3900}
3901
3902func (p *samplingPredicate) KeepPage(page parquet.Page) bool {
3903 if p.inner != nil && !p.inner.KeepPage(page) {
3904 return false
3905 }
3906
3907 // We call Expect() on page because it is closer to the actual data
3908 // to be processed. We could call it earlier in KeepColumnChunk()
3909 // but it reduces effectiveness of the sampler because we may
3910 // skip around or exit early due to any other conditions.
3911 p.sampler.Expect(uint64(page.NumValues()))
3912 return true
3913}
3914
3915func (p *samplingPredicate) KeepValue(value parquet.Value) bool {
3916 if p.inner != nil && !p.inner.KeepValue(value) {

Callers

nothing calls this directly

Calls 2

KeepPageMethod · 0.65
ExpectMethod · 0.65

Tested by

no test coverage detected