keyed

package
v0.6.2 Latest Latest
Warning

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

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

Documentation

Overview

Package keyed .... TODO: document

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyedWindow

type KeyedWindow struct {
	*window.IntervalWindow
	// TODO: can this be map[string]struct{} ?
	Keys map[string]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() []partition.ID

Partitions returns an array of partitions for a window

Jump to

Keyboard shortcuts

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