org.apache.flink.api
Members list
Type members
Classlikes
A AllWindowedStream represents a data stream where the stream of elements is split into windows based on a org.apache.flink.streaming.api.windowing.assigners.WindowAssigner. Window emission is triggered based on a Trigger.
A AllWindowedStream represents a data stream where the stream of elements is split into windows based on a org.apache.flink.streaming.api.windowing.assigners.WindowAssigner. Window emission is triggered based on a Trigger.
If an Evictor is specified it will be used to evict elements from the window after evaluation was triggered by the Trigger but before the actual evaluation of the window. When using an evictor window performance will degrade significantly, since pre-aggregation of window results cannot be used.
Note that the AllWindowedStream is purely and API construct, during runtime the AllWindowedStream will be collapsed together with the operation over the window into one single operation.
Attributes
- T
The type of elements in the stream.
- W
The type of Window that the org.apache.flink.streaming.api.windowing.assigners.WindowAssigner assigns the elements to.
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
A helper class to apply AsyncFunction to a data stream.
A helper class to apply AsyncFunction to a data stream.
Example:
val input: DataStream[String] = ...
val asyncFunction: (String, ResultFuture[String]) => Unit = ...
AsyncDataStream.orderedWait(input, asyncFunction, timeout, TimeUnit.MILLISECONDS, 100)
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- AsyncDataStream.type
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
A cleaner that renders closures serializable if they can be done so safely.
A cleaner that renders closures serializable if they can be done so safely.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ClosureCleaner.type
CoGroupedStreams represents two DataStreams that have been co-grouped. A streaming co-group operation is
evaluated over elements in a window.
CoGroupedStreams represents two DataStreams that have been co-grouped. A streaming co-group operation is
evaluated over elements in a window.
To finalize the co-group operation you also need to specify a KeySelector for both the first and second input and a WindowAssigner
Note: Right now, the groups are being built in memory so you need to ensure that they don't get too big. Otherwise the JVM might crash.
Example:
val one: DataStream[(String, Int)] = ...
val two: DataStream[(String, Int)] = ...
val result = one.coGroup(two)
.where(new MyFirstKeySelector())
.equalTo(new MyFirstKeySelector())
.window(TumblingEventTimeWindows.of(Time.of(5, TimeUnit.SECONDS)))
.apply(new MyCoGroupFunction())
}
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait TaggedDerivation[TypeClass]
ConnectedStreams represents two connected streams of (possibly) different data types. Connected streams are useful for cases where operations on one stream directly affect the operations on the other stream, usually via shared state between the streams.
ConnectedStreams represents two connected streams of (possibly) different data types. Connected streams are useful for cases where operations on one stream directly affect the operations on the other stream, usually via shared state between the streams.
An example for the use of connected streams would be to apply rules that change over time onto another stream. One of the connected streams has the rules, the other stream the elements to apply the rules to. The operation on the connected stream maintains the current set of rules in the state. It may receive either a rule update and update the state or a data element and apply the rules in the state to the element.
The connected stream can be conceptually viewed as a union stream of an Either type, that holds either the first stream's type or the second stream's type.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
This class provides simple utility methods for collecting a DataStream, effectively enriching it with the functionality encapsulated by DataStreamUtils.
This class provides simple utility methods for collecting a DataStream, effectively enriching it with the functionality encapsulated by DataStreamUtils.
This experimental class is relocated from flink-streaming-contrib.
Attributes
- self
DataStream
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
Attributes
- Graph
- Supertypes
- trait KeySelector[IN, K]trait Functiontrait Serializableclass Objecttrait Matchableclass Any
JoinedStreams represents two DataStreams that have been joined. A streaming join operation is evaluated over
elements in a window.
JoinedStreams represents two DataStreams that have been joined. A streaming join operation is evaluated over
elements in a window.
To finalize the join operation you also need to specify a KeySelector for both the first and second input and a WindowAssigner
Note: Right now, the groups are being built in memory so you need to ensure that they don't get too big. Otherwise the JVM might crash.
Example:
val one: DataStream[(String, Int)] = ...
val two: DataStream[(String, Int)] = ...
val result = one.join(two)
.where {t => ... }
.equal {t => ... }
.window(TumblingEventTimeWindows.of(Time.of(5, TimeUnit.SECONDS)))
.apply(new MyJoinFunction())
}
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
An OutputTag is a typed and named tag to use for tagging side outputs of an operator.
An OutputTag is a typed and named tag to use for tagging side outputs of an operator.
Example:
val outputTag = OutputTag[String]("late-data")
Attributes
- T
the type of elements in the side-output stream.
- Companion:
- object
- Graph
- Supertypes
- class OutputTag[T]trait Serializableclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class FlinkExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ScalaStreamOps.type
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
Attributes
- Graph
- Supertypes
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- TypeTagMacro.type
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 org.apache.flink.streaming.api.windowing.assigners.WindowAssigner. Window emission is triggered based on a Trigger.
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 org.apache.flink.streaming.api.windowing.assigners.WindowAssigner. Window emission is triggered based on a Trigger.
The windows are conceptually evaluated for each key individually, meaning windows can trigger at different points for each key.
If an org.apache.flink.streaming.api.windowing.evictors.Evictor is specified it will be used to evict elements from the window after evaluation was triggered by the Trigger but before the actual evaluation of the window. When using an evictor window performance will degrade significantly, since pre-aggregation of window results cannot be used.
Note that the WindowedStream is purely and API construct, during runtime the WindowedStream will be collapsed together with the KeyedStream and the operation over the window into one single operation.
Attributes
- K
The type of the key by which elements are grouped.
- T
The type of elements in the stream.
- W
The type of Window that the org.apache.flink.streaming.api.windowing.assigners.WindowAssigner assigns the elements to.
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- serializers.type