Documentation
¶
Index ¶
- func Context() context.Context
- func Execute(ctx context.Context) error
- func NewInfiniteStream() *infiniteStream
- func NewIntValues(ints ...int) []values.Value
- func NewPartitionedStream(par int, ks KeySelector, ds DataStream, f func() Transport) *partitionedStream
- func SendClose(c Collector)
- func Walk(g Graph, f Visitor)
- type AnonymousNode
- func (n *AnonymousNode) Clone() Node
- func (n *AnonymousNode) Do(collector Collector, v values.Value) error
- func (n AnonymousNode) GetName() string
- func (n AnonymousNode) GetParallelism() int
- func (n *AnonymousNode) Out() *Arch
- func (n *AnonymousNode) SetName(name string) Node
- func (n *AnonymousNode) SetParallelism(par int) Node
- func (n AnonymousNode) String() string
- type Arch
- type Collector
- type DataStream
- type Engine
- type FixedWindowManager
- type FnKeySelector
- type Graph
- type KeySelector
- type Link
- type Node
- type NodeFunc
- type Operator
- type OperatorOption
- type ParallelOperator
- type TimestampExtractor
- type TimestampExtractorFn
- type Transport
- type Visitor
- type Window
- type WindowCloseFn
- type WindowFn
- type WindowManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInfiniteStream ¶
func NewInfiniteStream() *infiniteStream
func NewIntValues ¶
func NewPartitionedStream ¶
func NewPartitionedStream(par int, ks KeySelector, ds DataStream, f func() Transport) *partitionedStream
Types ¶
type AnonymousNode ¶
type AnonymousNode struct {
// contains filtered or unexported fields
}
func NewStatefulNode ¶
func NewStatefulNode(state0 values.Value, do NodeFunc) *AnonymousNode
func (*AnonymousNode) Clone ¶
func (n *AnonymousNode) Clone() Node
func (AnonymousNode) GetParallelism ¶
func (n AnonymousNode) GetParallelism() int
func (*AnonymousNode) Out ¶
func (n *AnonymousNode) Out() *Arch
func (*AnonymousNode) SetName ¶
func (n *AnonymousNode) SetName(name string) Node
func (*AnonymousNode) SetParallelism ¶
func (n *AnonymousNode) SetParallelism(par int) Node
type Arch ¶
type Arch struct {
// contains filtered or unexported fields
}
func (*Arch) KeyBy ¶
func (a *Arch) KeyBy(ks KeySelector) *Arch
type DataStream ¶
func NewStreamFromElements ¶
func NewStreamFromElements(elems ...values.Value) DataStream
type FixedWindowManager ¶
type FixedWindowManager struct {
// contains filtered or unexported fields
}
func NewFixedWindowManager ¶
func NewFixedWindowManager(size int, slide int, state values.Value) *FixedWindowManager
func (*FixedWindowManager) ForEachClosedWindow ¶
func (*FixedWindowManager) ForEachWindow ¶
type FnKeySelector ¶
type KeySelector ¶
func NewFixedKeySelector ¶
func NewFixedKeySelector() KeySelector
func NewRoundRobinKeySelector ¶
func NewRoundRobinKeySelector(n int) KeySelector
func NewStringValueKeySelector ¶
func NewStringValueKeySelector(f func(v values.Value) string) KeySelector
type Node ¶
type Node interface { Do(collector Collector, v values.Value) error Out() *Arch Clone() Node // Options. SetParallelism(par int) Node GetParallelism() int SetName(name string) Node GetName() string }
func AssignTimestamp ¶
func AssignTimestamp(tse TimestampExtractorFn) Node
func NewWindowedNode ¶
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
func NewOperator ¶
func (*Operator) In ¶
func (o *Operator) In(ds DataStream)
type OperatorOption ¶
type OperatorOption func(options *operatorOptions)
func WithInKeySelector ¶
func WithInKeySelector(ks KeySelector) OperatorOption
type ParallelOperator ¶
type ParallelOperator struct {
// contains filtered or unexported fields
}
func NewParallelOperator ¶
func NewParallelOperator(par int, f func() *Operator, opts ...OperatorOption) *ParallelOperator
func (*ParallelOperator) Close ¶
func (o *ParallelOperator) Close() error
func (*ParallelOperator) In ¶
func (o *ParallelOperator) In(ds DataStream, f func() Transport)
func (*ParallelOperator) Open ¶
func (o *ParallelOperator) Open()
func (*ParallelOperator) Out ¶
func (o *ParallelOperator) Out(cs []Collector)
type TimestampExtractor ¶
type TimestampExtractorFn ¶
type Transport ¶
type Transport interface { Collector DataStream }
Transport enables collecting on a DataStream.
type Window ¶
func (*Window) AddElement ¶
func (w *Window) AddElement(v values.TimestampedValue)
type WindowCloseFn ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.