keyed

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package keyed implements KeyedWindows. A keyed window associates key(s) with a window. A key uniquely identifies a partitioned set of events in a given time window.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignedKeyedWindow added in v0.6.3

type AlignedKeyedWindow struct {
	// Start time of the window
	Start time.Time
	// End time of the window
	End time.Time
	// contains filtered or unexported fields
}

AlignedKeyedWindow maintains association between keys and a window. In a keyed stream, we need to close all the partitions when the watermark is past the window.

func NewKeyedWindow

func NewKeyedWindow(start time.Time, end time.Time) *AlignedKeyedWindow

NewKeyedWindow creates a new keyed window

func (*AlignedKeyedWindow) AddSlot added in v0.7.1

func (kw *AlignedKeyedWindow) AddSlot(key string)

AddSlot adds a slot to an existing window

func (*AlignedKeyedWindow) EndTime added in v0.6.3

func (kw *AlignedKeyedWindow) EndTime() time.Time

EndTime returns end of the window.

func (*AlignedKeyedWindow) Keys added in v0.6.3

func (kw *AlignedKeyedWindow) Keys() []string

func (*AlignedKeyedWindow) Partitions added in v0.6.3

func (kw *AlignedKeyedWindow) Partitions() []partition.ID

Partitions returns an array of partitions for a window

func (*AlignedKeyedWindow) StartTime added in v0.6.3

func (kw *AlignedKeyedWindow) StartTime() time.Time

StartTime returns start of the window.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL