github.com/grafana/pyroscope@v1.18.0/pkg/phlaredb/schemas/v1/read_writer.go (about)

     1  package v1
     2  
     3  import (
     4  	"github.com/parquet-go/parquet-go"
     5  )
     6  
     7  type PersisterName interface {
     8  	Name() string
     9  }
    10  
    11  type Persister[T any] interface {
    12  	PersisterName
    13  	Schema() *parquet.Schema
    14  	Deconstruct(parquet.Row, T) parquet.Row
    15  	Reconstruct(parquet.Row) (T, error)
    16  }