Documentation ¶
Overview ¶
Package streaming implement the flow framework to provide the sliding window, top-n aggregation, and etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTumblingTimeWindows ¶
NewTumblingTimeWindows return tumbling-time windows.
Types ¶
type TopNOption ¶
type TopNOption func(aggregator *topNAggregatorGroup)
TopNOption is the option to set up a top-n aggregator group.
func WithGroupKeyExtractor ¶ added in v0.4.0
func WithGroupKeyExtractor(groupKeyExtractor func(flow.StreamRecord) string) TopNOption
WithGroupKeyExtractor extract group key from the StreamRecord.
func WithSortKeyExtractor ¶
func WithSortKeyExtractor(sortKeyExtractor func(flow.StreamRecord) int64) TopNOption
WithSortKeyExtractor sets a closure to extract the sorting key.
Click to show internal directories.
Click to hide internal directories.