Documentation ¶
Overview ¶
Package aggregations contains custom aggregation for bluge
Package aggregations contains custom aggregation for bluge
Index ¶
- type DateHistogramAggregation
- type DateHistogramCalculator
- func (c *DateHistogramCalculator) Buckets() []*search.Bucket
- func (c *DateHistogramCalculator) Consume(d *search.DocumentMatch)
- func (c *DateHistogramCalculator) Finish()
- func (c *DateHistogramCalculator) Len() int
- func (c *DateHistogramCalculator) Less(i, j int) bool
- func (c *DateHistogramCalculator) Merge(other search.Calculator)
- func (c *DateHistogramCalculator) Other() int
- func (c *DateHistogramCalculator) Swap(i, j int)
- type HistogramAggregation
- type HistogramCalculator
- func (c *HistogramCalculator) Buckets() []*search.Bucket
- func (c *HistogramCalculator) Consume(d *search.DocumentMatch)
- func (c *HistogramCalculator) Finish()
- func (c *HistogramCalculator) Len() int
- func (c *HistogramCalculator) Less(i, j int) bool
- func (c *HistogramCalculator) Merge(other search.Calculator)
- func (c *HistogramCalculator) Other() int
- func (c *HistogramCalculator) Swap(i, j int)
- type PercentilesCalculator
- type PercentilesMetric
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 (c *DateHistogramCalculator) Consume(d *search.DocumentMatch)
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 (c *PercentilesCalculator) Consume(d *search.DocumentMatch)
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
Click to show internal directories.
Click to hide internal directories.