streaming

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstantStreamOutput

type InstantStreamOutput struct {
	StreamID *execution.StreamID
}

func NewInstantStreamOutput

func NewInstantStreamOutput(streamID *execution.StreamID) *InstantStreamOutput

func (*InstantStreamOutput) AddRecord

func (o *InstantStreamOutput) AddRecord(ctx context.Context, tx storage.StateTransaction, inputIndex int, record *execution.Record) error

func (*InstantStreamOutput) Close

func (o *InstantStreamOutput) Close(ctx context.Context, storage storage.Storage) error

func (*InstantStreamOutput) GetEndOfStream

func (o *InstantStreamOutput) GetEndOfStream(ctx context.Context, tx storage.StateTransaction) (bool, error)

func (*InstantStreamOutput) GetErrorMessage

func (o *InstantStreamOutput) GetErrorMessage(ctx context.Context, tx storage.StateTransaction) (string, error)

func (*InstantStreamOutput) GetWatermark

func (*InstantStreamOutput) MarkEndOfStream

func (o *InstantStreamOutput) MarkEndOfStream(ctx context.Context, tx storage.StateTransaction) error

func (*InstantStreamOutput) MarkError

func (*InstantStreamOutput) Next

func (*InstantStreamOutput) ReadyForMore

func (*InstantStreamOutput) TriggerKeys

func (o *InstantStreamOutput) TriggerKeys(ctx context.Context, tx storage.StateTransaction, batchSize int) (int, error)

func (*InstantStreamOutput) UpdateWatermark

func (o *InstantStreamOutput) UpdateWatermark(ctx context.Context, tx storage.StateTransaction, watermark time.Time) error

type StreamPrinter

type StreamPrinter struct {
	// contains filtered or unexported fields
}

func NewStreamPrinter

func NewStreamPrinter(stateStorage storage.Storage, recordSink execution.IntermediateRecordStore, printFn func(record *execution.Record)) *StreamPrinter

func (*StreamPrinter) Run

func (sp *StreamPrinter) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL