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 ¶
- func Aggregation(input logical.UnresolvedPlan, aggrField *logical.Field, ...) logical.UnresolvedPlan
- func GroupBy(input logical.UnresolvedPlan, groupBy [][]*logical.Tag, groupByEntity bool) logical.UnresolvedPlan
- func IndexScan(startTime, endTime time.Time, metadata *commonv1.Metadata, filter index.Filter, ...) logical.UnresolvedPlan
- func Limit(input logical.UnresolvedPlan, offset, limit uint32) logical.UnresolvedPlan
- func Top(input logical.UnresolvedPlan, top *measurev1.QueryRequest_Top) logical.UnresolvedPlan
- type Analyzer
- type TopElement
- type TopQueue
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 Limit ¶
func Limit(input logical.UnresolvedPlan, offset, limit uint32) logical.UnresolvedPlan
func Top ¶
func Top(input logical.UnresolvedPlan, top *measurev1.QueryRequest_Top) logical.UnresolvedPlan
Types ¶
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
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 (*TopQueue) Elements ¶
func (s *TopQueue) Elements() []TopElement
func (*TopQueue) Insert ¶
func (s *TopQueue) Insert(element TopElement) bool