transform

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package transform provides primitives for extracting metadata from v1.Data that is used for building indexes

Metadata is organized in labels which generate unique keys that can be used for persistance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Resource v1.RESOURCE
	Labels   labels.Labels
	MinTs    uint64
	MaxTs    uint64
}

func NewContext

func NewContext() *Context

func (*Context) Label

func (c *Context) Label(f func(lbl *labels.Label))

func (*Context) Process

func (c *Context) Process(data *v1.Data)

func (*Context) Range

func (c *Context) Range(start, end uint64)

func (*Context) Release

func (c *Context) Release()

func (*Context) Reset

func (c *Context) Reset() *Context

func (*Context) Timestamp

func (c *Context) Timestamp(ts uint64)

func (*Context) WithResource

func (c *Context) WithResource(r v1.RESOURCE) *Context

Jump to

Keyboard shortcuts

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