| Package | Description |
|---|---|
| org.apache.flink.streaming.api.datastream | |
| org.apache.flink.streaming.api.functions.windowing | |
| org.apache.flink.streaming.api.windowing.assigners | |
| org.apache.flink.streaming.api.windowing.evictors | |
| org.apache.flink.streaming.api.windowing.triggers | |
| org.apache.flink.streaming.api.windowing.windows | |
| org.apache.flink.streaming.runtime.operators.windowing |
This package contains the operators that implement the various window operations
on data streams.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AllWindowedStream<T,W extends Window>
A
AllWindowedStream represents a data stream where the stream of
elements is split into windows based on a
WindowAssigner. |
static class |
CoGroupedStreams.WithWindow<T1,T2,KEY,W extends Window>
A co-group operation that has
KeySelectors defined for both inputs as
well as a WindowAssigner. |
static class |
JoinedStreams.WithWindow<T1,T2,KEY,W extends Window>
A join operation that has
KeySelectors defined for both inputs as
well as a WindowAssigner. |
class |
WindowedStream<T,K,W extends Window>
A
WindowedStream represents a data stream where elements are grouped by
key, and for each key, the stream of elements is split into windows based on a
WindowAssigner. |
| Modifier and Type | Method and Description |
|---|---|
<W extends Window> |
CoGroupedStreams.Where.EqualTo.window(WindowAssigner<? super CoGroupedStreams.TaggedUnion<T1,T2>,W> assigner)
Specifies the window on which the co-group operation works.
|
<W extends Window> |
JoinedStreams.Where.EqualTo.window(WindowAssigner<? super CoGroupedStreams.TaggedUnion<T1,T2>,W> assigner)
Specifies the window on which the co-group operation works.
|
<W extends Window> |
KeyedStream.window(WindowAssigner<? super T,W> assigner)
Windows this data stream to a
WindowedStream, which evaluates windows
over a key grouped stream. |
<W extends Window> |
DataStream.windowAll(WindowAssigner<? super T,W> assigner)
Windows this data stream to a
KeyedTriggerWindowDataStream, which evaluates windows
over a key grouped stream. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
AllWindowFunction<IN,OUT,W extends Window>
Base interface for functions that are evaluated over non-keyed windows.
|
class |
FoldAllWindowFunction<W extends Window,T,R> |
class |
FoldWindowFunction<K,W extends Window,T,R> |
class |
ReduceAllWindowFunction<W extends Window,T> |
class |
ReduceWindowFunction<K,W extends Window,T> |
class |
ReduceWindowFunctionWithWindow<K,W extends Window,T> |
class |
RichAllWindowFunction<IN,OUT,W extends Window> |
class |
RichWindowFunction<IN,OUT,KEY,W extends Window> |
interface |
WindowFunction<IN,OUT,KEY,W extends Window>
Base interface for functions that are evaluated over keyed (grouped) windows.
|
| Modifier and Type | Class and Description |
|---|---|
class |
WindowAssigner<T,W extends Window>
A
WindowAssigner assigns zero or more Windows to an element. |
| Modifier and Type | Class and Description |
|---|---|
class |
CountEvictor<W extends Window>
An
Evictor that keeps only a certain amount of elements. |
class |
DeltaEvictor<T,W extends Window>
An
Evictor that keeps elements based on a DeltaFunction and a threshold. |
interface |
Evictor<T,W extends Window>
An
Evictor can remove elements from a pane before it is being processed and after
window evaluation was triggered by a
Trigger. |
class |
TimeEvictor<W extends Window>
An
Evictor that keeps elements for a certain amount of time. |
| Modifier and Type | Method and Description |
|---|---|
static <W extends Window> |
TimeEvictor.of(AbstractTime windowSize)
Creates a
TimeEvictor that keeps the given number of elements. |
static <T,W extends Window> |
DeltaEvictor.of(double threshold,
DeltaFunction<T> deltaFunction)
Creates a
DeltaEvictor from the given threshold and DeltaFunction. |
static <W extends Window> |
CountEvictor.of(long maxCount)
Creates a
CountEvictor that keeps the given number of elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
ContinuousEventTimeTrigger<W extends Window>
A
Trigger that continuously fires based on a given time interval. |
class |
ContinuousProcessingTimeTrigger<W extends Window>
A
Trigger that continuously fires based on a given time interval. |
class |
CountTrigger<W extends Window>
A
Trigger that fires once the count of elements in a pane reaches the given count. |
class |
DeltaTrigger<T extends Serializable,W extends Window>
A
Trigger that fires based on a DeltaFunction and a threshold. |
class |
PurgingTrigger<T,W extends Window>
A trigger that can turn any
Trigger into a purging Trigger. |
interface |
Trigger<T,W extends Window>
A
Trigger determines when a pane of a window should be evaluated to emit the
results for that part of the window. |
| Modifier and Type | Method and Description |
|---|---|
static <W extends Window> |
ContinuousEventTimeTrigger.of(AbstractTime interval)
Creates a trigger that continuously fires based on the given interval.
|
static <W extends Window> |
ContinuousProcessingTimeTrigger.of(AbstractTime interval)
Creates a trigger that continuously fires based on the given interval.
|
static <T extends Serializable,W extends Window> |
DeltaTrigger.of(double threshold,
DeltaFunction<T> deltaFunction)
Creates a delta trigger from the given threshold and
DeltaFunction. |
static <W extends Window> |
CountTrigger.of(long maxCount)
Creates a trigger that fires once the number of elements in a pane reaches the given count.
|
static <T,W extends Window> |
PurgingTrigger.of(Trigger<T,W> nestedTrigger)
Creates a new purging trigger from the given
Trigger. |
| Modifier and Type | Class and Description |
|---|---|
class |
GlobalWindow |
class |
TimeWindow
|
| Modifier and Type | Class and Description |
|---|---|
class |
EvictingNonKeyedWindowOperator<IN,OUT,W extends Window>
Evicting window operator for non-keyed windows.
|
class |
EvictingWindowOperator<K,IN,OUT,W extends Window>
A
WindowOperator that also allows an Evictor to be used. |
class |
NonKeyedWindowOperator<IN,OUT,W extends Window>
Window operator for non-keyed windows.
|
class |
WindowOperator<K,IN,OUT,W extends Window>
An operator that implements the logic for windowing based on a
WindowAssigner and
Trigger. |
| Modifier and Type | Field and Description |
|---|---|
protected W |
NonKeyedWindowOperator.Context.window |
protected W |
WindowOperator.Context.window |
| Constructor and Description |
|---|
AccumulatingKeyedTimePanes(org.apache.flink.api.java.functions.KeySelector<Type,Key> keySelector,
WindowFunction<Type,Result,Key,Window> function) |
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.