Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLimit = 1000000
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
Aggregator performs the core aggregation computation for a list of reducer generators. It handles both regular and time-binned ("every") group-by operations. Records are generated in a deterministic but undefined total order.
func NewAggregator ¶
func (*Aggregator) Consume ¶
func (a *Aggregator) Consume(r *zed.Record) error
Consume adds a record to the aggregation.
func (*Aggregator) Results ¶
func (a *Aggregator) Results(eof bool) (zbuf.Batch, error)
Results returns a batch of aggregation result records. Upon eof, this should be called repeatedly until a nil batch is returned. If the input is sorted in the primary key, Results can be called before eof, and keys that are completed will returned.
Click to show internal directories.
Click to hide internal directories.