Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistinctCounter ¶
func (*DistinctCounter) Init ¶
func (f *DistinctCounter) Init(typ *grizzly.FieldType)
func (*DistinctCounter) Reset ¶
func (f *DistinctCounter) Reset()
func (*DistinctCounter) Update ¶
func (f *DistinctCounter) Update(value interface{})
func (*DistinctCounter) Value ¶
func (f *DistinctCounter) Value() interface{}
type Functor ¶
type Functor interface { Init(typ *grizzly.FieldType) Reset() Update(value interface{}) Value() interface{} }
Functor embodies an aggregate function. It typically has an internal state that is 1. intialized before the first row is processed 2. updated by using information from a row 3. read by calling `Value` 4. Reset at the window boundary to be ready to aggregate the next values from the upcoming window.
Click to show internal directories.
Click to hide internal directories.