query

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package query implement the query module for liaison and other modules to retrieve data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService added in v0.3.0

func NewService(_ context.Context, streamService stream.Service, measureService measure.Service,
	metaService metadata.Repo, pipeline queue.Server,
) (run.Unit, error)

NewService return a new query service.

Types

type PostProcessor added in v0.5.0

type PostProcessor interface {
	Put(entityValues pbv1.EntityValues, val int64, timestampMillis uint64) error
	Val([]string) []*measurev1.TopNList
}

PostProcessor defines necessary methods for Top-N post processor with or without aggregation.

func CreateTopNPostAggregator added in v0.5.0

func CreateTopNPostAggregator(topN int32, aggrFunc modelv1.AggregationFunction, sort modelv1.Sort) PostProcessor

CreateTopNPostAggregator creates a Top-N post processor with or without aggregation.

Jump to

Keyboard shortcuts

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