samples

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractLocationIDs

func ExtractLocationIDs(locs []uuid.UUID) []byte

func LabelColumn

func LabelColumn(name string) *schemav2pb.Node

func NestedListDef

func NestedListDef(name string, layout *schemav2pb.StorageLayout) *schemav2pb.Node_Group

func NewNestedSampleSchema

func NewNestedSampleSchema(t testing.TB) proto.Message

func PrehashedSampleDefinition

func PrehashedSampleDefinition() *schemapb.Schema

func SampleDefinition

func SampleDefinition() *schemapb.Schema

func SampleDefinitionWithFloat

func SampleDefinitionWithFloat() *schemapb.Schema

Adds a float column to the SampleDefinition to be able to test aggregations with float values.

Types

type Sample

type Sample struct {
	ExampleType string            `frostdb:"example_type,rle_dict,asc(0)"`
	Labels      map[string]string `frostdb:"labels,rle_dict,asc(1),null_first"`
	Stacktrace  []uuid.UUID       `frostdb:"stacktrace,rle_dict,asc(3),null_first"`
	Timestamp   int64             `frostdb:"timestamp,asc(2)"`
	Value       int64             `frostdb:"value"`
}

func (Sample) ToParquetRow

func (s Sample) ToParquetRow(labelNames []string) parquet.Row

type Samples

type Samples []Sample

func GenerateTestSamples

func GenerateTestSamples(n int) Samples

func NewTestSamples

func NewTestSamples() Samples

func (Samples) SampleLabelNames

func (s Samples) SampleLabelNames() []string

func (Samples) ToRecord

func (s Samples) ToRecord() (arrow.Record, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL