Documentation ¶
Index ¶
- Variables
- func New(source flow.Source) flow.Flow
- type TopNOption
- type TopNSort
- type TriggerResult
- type TumblingTimeWindows
- func (s *TumblingTimeWindows) AssignWindows(timestamp int64) ([]flow.Window, error)
- func (s *TumblingTimeWindows) Exec(downstream flow.Inlet)
- func (s *TumblingTimeWindows) In() chan<- flow.StreamRecord
- func (s *TumblingTimeWindows) Out() <-chan flow.StreamRecord
- func (s *TumblingTimeWindows) Setup(ctx context.Context) (err error)
- func (s *TumblingTimeWindows) Teardown(ctx context.Context) error
- type Tuple2
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultCacheSize = 2
)
Functions ¶
Types ¶
type TopNOption ¶
type TopNOption func(aggregator *topNAggregator)
func OrderBy ¶
func OrderBy(sort TopNSort) TopNOption
func WithSortKeyExtractor ¶
func WithSortKeyExtractor(sortKeyExtractor func(flow.StreamRecord) int64) TopNOption
type TumblingTimeWindows ¶
type TumblingTimeWindows struct { // internal state of the sliding time window flow.ComponentState // contains filtered or unexported fields }
func NewTumblingTimeWindows ¶
func NewTumblingTimeWindows(size time.Duration) *TumblingTimeWindows
func (*TumblingTimeWindows) AssignWindows ¶
func (s *TumblingTimeWindows) AssignWindows(timestamp int64) ([]flow.Window, error)
AssignWindows assigns windows according to the given timestamp
func (*TumblingTimeWindows) Exec ¶
func (s *TumblingTimeWindows) Exec(downstream flow.Inlet)
func (*TumblingTimeWindows) In ¶
func (s *TumblingTimeWindows) In() chan<- flow.StreamRecord
func (*TumblingTimeWindows) Out ¶
func (s *TumblingTimeWindows) Out() <-chan flow.StreamRecord
Click to show internal directories.
Click to hide internal directories.