keyed

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyedWindow

type KeyedWindow struct {
	*window.IntervalWindow
	Keys []string
	// contains filtered or unexported fields
}

KeyedWindow 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(window *window.IntervalWindow) *KeyedWindow

NewKeyedWindow creates a new keyed window

func (*KeyedWindow) AddKey

func (kw *KeyedWindow) AddKey(key string)

AddKey adds a key to an existing window

func (*KeyedWindow) Partitions

func (kw *KeyedWindow) Partitions() []PartitionId

Partitions returns an array of partitions for a window

type PartitionId

type PartitionId string

PartitionId uniquely identifies a partition

func Partition

func Partition(window *window.IntervalWindow, key string) PartitionId

Partition returns the partitionId for a given window and a key

Jump to

Keyboard shortcuts

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