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

Method Find

tempodb/encoding/vparquet5/index.go:33–43  ·  view source on GitHub ↗
(id common.ID)

Source from the content-addressed store, hash-verified

31}
32
33func (i *index) Find(id common.ID) int {
34 n := sort.Search(len(i.RowGroups), func(j int) bool {
35 return bytes.Compare(id, i.RowGroups[j]) <= 0
36 })
37 if n >= len(i.RowGroups) {
38 // Beyond the last row group. This is the only
39 // area where presence can be ruled out.
40 return -1
41 }
42 return n
43}
44
45func unmarshalIndex(b []byte) (*index, error) {
46 i := &index{}

Callers

nothing calls this directly

Calls 2

SearchMethod · 0.65
CompareMethod · 0.45

Tested by

no test coverage detected