startreeindex

package
v0.0.0-...-bbf0bf7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregationType

type AggregationType string
const (
	Sum     AggregationType = "SUM"
	Average AggregationType = "AVERAGE"
)

type StarTreeNode

type StarTreeNode[T ValidTypes] struct {
	Level           int
	Dimension       string
	DimensionValue  T
	AggregatedValue T
	AggregationType AggregationType
	Children        []*StarTreeNode[T]
}

func New

func New[T ValidTypes]() *StarTreeNode[T]

New initialize the root node

func (*StarTreeNode[T]) ProcessEvent

func (n *StarTreeNode[T]) ProcessEvent(node *StarTreeNode[T], event map[string]interface{}, dimensions []string, level int) error

type ValidTypes

type ValidTypes interface {
	constraints.Float | constraints.Integer
}

Jump to

Keyboard shortcuts

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