aggregations

package
v0.0.0-...-04d6450 Latest Latest
Warning

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

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

Documentation

Overview

Package aggregations contains custom aggregation for bluge

Package aggregations contains custom aggregation for bluge

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateHistogramAggregation

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

func NewDateHistogramAggregation

func NewDateHistogramAggregation(
	field search.DateValuesSource,
	calendarInterval string,
	fixedInterval int64,
	format string,
	timeZone *time.Location,
	offset any,
	minDocCount int,
	extendedBounds,
	hardBounds *indexlib.DateHistogramBound,
) *DateHistogramAggregation

func (*DateHistogramAggregation) AddAggregation

func (d *DateHistogramAggregation) AddAggregation(name string, aggregation search.Aggregation)

func (*DateHistogramAggregation) Calculator

func (d *DateHistogramAggregation) Calculator() search.Calculator

func (*DateHistogramAggregation) Fields

func (d *DateHistogramAggregation) Fields() []string

type DateHistogramCalculator

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

func (*DateHistogramCalculator) Buckets

func (c *DateHistogramCalculator) Buckets() []*search.Bucket

func (*DateHistogramCalculator) Consume

func (*DateHistogramCalculator) Finish

func (c *DateHistogramCalculator) Finish()

func (*DateHistogramCalculator) Len

func (c *DateHistogramCalculator) Len() int

func (*DateHistogramCalculator) Less

func (c *DateHistogramCalculator) Less(i, j int) bool

func (*DateHistogramCalculator) Merge

func (c *DateHistogramCalculator) Merge(other search.Calculator)

func (*DateHistogramCalculator) Other

func (c *DateHistogramCalculator) Other() int

func (*DateHistogramCalculator) Swap

func (c *DateHistogramCalculator) Swap(i, j int)

type HistogramAggregation

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

func NewHistogramAggregation

func NewHistogramAggregation(
	field search.NumericValuesSource,
	interval float64,
	offset float64,
	minDocCount int,
	extendedBounds,
	hardBounds *indexlib.HistogramBound,
) *HistogramAggregation

func (*HistogramAggregation) AddAggregation

func (d *HistogramAggregation) AddAggregation(name string, aggregation search.Aggregation)

func (*HistogramAggregation) Calculator

func (d *HistogramAggregation) Calculator() search.Calculator

func (*HistogramAggregation) Fields

func (d *HistogramAggregation) Fields() []string

type HistogramCalculator

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

func (*HistogramCalculator) Buckets

func (c *HistogramCalculator) Buckets() []*search.Bucket

func (*HistogramCalculator) Consume

func (c *HistogramCalculator) Consume(d *search.DocumentMatch)

func (*HistogramCalculator) Finish

func (c *HistogramCalculator) Finish()

func (*HistogramCalculator) Len

func (c *HistogramCalculator) Len() int

func (*HistogramCalculator) Less

func (c *HistogramCalculator) Less(i, j int) bool

func (*HistogramCalculator) Merge

func (c *HistogramCalculator) Merge(other search.Calculator)

func (*HistogramCalculator) Other

func (c *HistogramCalculator) Other() int

func (*HistogramCalculator) Swap

func (c *HistogramCalculator) Swap(i, j int)

type PercentilesCalculator

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

func (*PercentilesCalculator) Consume

func (*PercentilesCalculator) Finish

func (c *PercentilesCalculator) Finish()

func (*PercentilesCalculator) Merge

func (c *PercentilesCalculator) Merge(other search.Calculator)

func (*PercentilesCalculator) Value

func (c *PercentilesCalculator) Value() map[string]float64

type PercentilesMetric

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

func NewPercentiles

func NewPercentiles(
	src search.NumericValuesSource,
	percents []float64,
	compression float64,
) *PercentilesMetric

func (*PercentilesMetric) Calculator

func (c *PercentilesMetric) Calculator() search.Calculator

func (*PercentilesMetric) Fields

func (c *PercentilesMetric) Fields() []string

Jump to

Keyboard shortcuts

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