measure

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Licensed to Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Apache Software Foundation (ASF) licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aggregation

func Aggregation(input logical.UnresolvedPlan, aggrField *logical.Field, aggrFunc modelv1.AggregationFunction, isGroup bool) logical.UnresolvedPlan

func GroupBy

func GroupBy(input logical.UnresolvedPlan, groupBy [][]*logical.Tag, groupByEntity bool) logical.UnresolvedPlan

func IndexScan

func IndexScan(startTime, endTime time.Time, metadata *commonv1.Metadata, filter index.Filter, entities []tsdb.Entity,
	projectionTags [][]*logical.Tag, projectionFields []*logical.Field, groupByEntity bool, unresolvedOrderBy *logical.UnresolvedOrderBy,
) logical.UnresolvedPlan

func Limit

func Limit(input logical.UnresolvedPlan, offset, limit uint32) logical.UnresolvedPlan

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

func CreateAnalyzerFromMetaService

func CreateAnalyzerFromMetaService(metaSvc metadata.Service) (*Analyzer, error)

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(_ context.Context, criteria *measurev1.QueryRequest, metadata *commonv1.Metadata, s logical.Schema) (logical.Plan, error)

func (*Analyzer) BuildSchema

func (a *Analyzer) BuildSchema(ctx context.Context, metadata *commonv1.Metadata) (logical.Schema, error)

type TopElement

type TopElement struct {
	// contains filtered or unexported fields
}

func NewTopElement

func NewTopElement(dp *measurev1.DataPoint, value int64) TopElement

func (TopElement) Val

func (e TopElement) Val() int64

type TopQueue

type TopQueue struct {
	// contains filtered or unexported fields
}

func NewTopQueue

func NewTopQueue(n int, reverted bool) *TopQueue

func (*TopQueue) Elements

func (s *TopQueue) Elements() []TopElement

func (*TopQueue) Equal

func (s *TopQueue) Equal(other *TopQueue) bool

func (*TopQueue) Insert

func (s *TopQueue) Insert(element TopElement) bool

func (*TopQueue) Purge

func (s *TopQueue) Purge()

func (TopQueue) String

func (s TopQueue) String() string

Jump to

Keyboard shortcuts

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