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

Method NextPage

pkg/parquetquery/column.go:34–52  ·  view source on GitHub ↗

NextPage wraps pages.ReadPage and helps reuse already open buffers.

()

Source from the content-addressed store, hash-verified

32
33// NextPage wraps pages.ReadPage and helps reuse already open buffers.
34func (h *ColumnChunkHelper) NextPage() (parquet.Page, error) {
35 if h.err != nil {
36 return nil, h.err
37 }
38
39 if h.firstPage != nil {
40 // Clear and return the already buffered first page.
41 // Caller takes ownership of it.
42 pg := h.firstPage
43 h.firstPage = nil
44 return pg, nil
45 }
46
47 if h.pages == nil {
48 h.pages = h.Pages()
49 }
50
51 return h.pages.ReadPage()
52}
53
54func (h *ColumnChunkHelper) Close() error {
55 if h.firstPage != nil {

Callers 7

ClearBlockMethod · 0.80
ListMethod · 0.80
ListBlocksMethod · 0.80
FindMethod · 0.80
seekPagesMethod · 0.80
nextMethod · 0.80
nextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected