| Modifier and Type | Method and Description |
|---|---|
DataStream<StreamWindow<OUT>> |
WindowedDataStream.getDiscretizedStream()
Returns the
DataStream of StreamWindows which represent
the discretised stream. |
DataStream<StreamWindow<OUT>> |
DiscretizedStream.getDiscretizedStream() |
| Constructor and Description |
|---|
DiscretizedStream(SingleOutputStreamOperator<StreamWindow<OUT>,?> discretizedStream,
org.apache.flink.api.java.functions.KeySelector<OUT,?> groupByKey,
WindowUtils.WindowTransformation tranformation,
boolean isPartitioned) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
EmptyWindowFilter.filter(StreamWindow<OUT> value) |
void |
WindowPartExtractor.flatMap(StreamWindow<OUT> value,
org.apache.flink.util.Collector<org.apache.flink.api.java.tuple.Tuple2<Integer,Integer>> out) |
void |
ParallelMerge.flatMap1(StreamWindow<OUT> nextWindow,
org.apache.flink.util.Collector<StreamWindow<OUT>> out) |
void |
WindowPartitioner.processElement(StreamWindow<T> currentWindow) |
void |
WindowMerger.processElement(StreamWindow<T> nextWindow) |
void |
WindowFlattener.processElement(StreamWindow<T> window) |
protected void |
ParallelMerge.updateCurrent(StreamWindow<OUT> current,
StreamWindow<OUT> nextWindow) |
protected void |
ParallelMerge.updateCurrent(StreamWindow<OUT> current,
StreamWindow<OUT> nextWindow) |
protected void |
ParallelGroupedMerge.updateCurrent(StreamWindow<OUT> current,
StreamWindow<OUT> nextWindow) |
protected void |
ParallelGroupedMerge.updateCurrent(StreamWindow<OUT> current,
StreamWindow<OUT> nextWindow) |
| Modifier and Type | Method and Description |
|---|---|
void |
ParallelMerge.flatMap1(StreamWindow<OUT> nextWindow,
org.apache.flink.util.Collector<StreamWindow<OUT>> out) |
void |
ParallelMerge.flatMap2(org.apache.flink.api.java.tuple.Tuple2<Integer,Integer> partInfo,
org.apache.flink.util.Collector<StreamWindow<OUT>> out) |
| Modifier and Type | Method and Description |
|---|---|
StreamWindow<T> |
StreamWindowSerializer.copy(StreamWindow<T> from) |
StreamWindow<T> |
StreamWindowSerializer.copy(StreamWindow<T> from,
StreamWindow<T> reuse) |
StreamWindow<T> |
StreamWindowSerializer.createInstance() |
StreamWindow<T> |
StreamWindowSerializer.deserialize(org.apache.flink.core.memory.DataInputView source) |
StreamWindow<T> |
StreamWindowSerializer.deserialize(StreamWindow<T> reuse,
org.apache.flink.core.memory.DataInputView source) |
static <R> StreamWindow<R> |
StreamWindow.fromElements(R... elements)
Creates a new
StreamWindow with random id from the given elements |
static <R> StreamWindow<R> |
StreamWindow.merge(List<StreamWindow<R>> windows)
Merges compatible windows together.
|
static <R> StreamWindow<R> |
StreamWindow.merge(StreamWindow<R>... windows)
Merges compatible windows together.
|
StreamWindow<T> |
StreamWindow.setNumberOfParts(int n) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.typeutils.TypeSerializer<StreamWindow<T>> |
StreamWindowTypeInfo.createSerializer(org.apache.flink.api.common.ExecutionConfig conf) |
org.apache.flink.api.common.typeutils.TypeSerializer<StreamWindow<T>> |
StreamWindowSerializer.duplicate() |
Class<StreamWindow<T>> |
StreamWindowTypeInfo.getTypeClass() |
static <X> List<StreamWindow<X>> |
StreamWindow.partitionBy(StreamWindow<X> streamWindow,
org.apache.flink.api.java.functions.KeySelector<X,?> keySelector,
boolean withKey)
Partitions the window using the given keyselector.
|
static <X> List<StreamWindow<X>> |
StreamWindow.split(StreamWindow<X> window,
int n)
Splits the window into n equal (if possible) sizes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
StreamWindow.compatibleWith(StreamWindow<T> otherWindow)
Checks whether this window can be merged with the given one.
|
StreamWindow<T> |
StreamWindowSerializer.copy(StreamWindow<T> from) |
StreamWindow<T> |
StreamWindowSerializer.copy(StreamWindow<T> from,
StreamWindow<T> reuse) |
StreamWindow<T> |
StreamWindowSerializer.copy(StreamWindow<T> from,
StreamWindow<T> reuse) |
StreamWindow<T> |
StreamWindowSerializer.deserialize(StreamWindow<T> reuse,
org.apache.flink.core.memory.DataInputView source) |
Integer |
WindowUtils.WindowKey.getKey(StreamWindow<R> value) |
static <R> StreamWindow<R> |
StreamWindow.merge(StreamWindow<R>... windows)
Merges compatible windows together.
|
static <X> List<StreamWindow<X>> |
StreamWindow.partitionBy(StreamWindow<X> streamWindow,
org.apache.flink.api.java.functions.KeySelector<X,?> keySelector,
boolean withKey)
Partitions the window using the given keyselector.
|
void |
StreamWindowSerializer.serialize(StreamWindow<T> window,
org.apache.flink.core.memory.DataOutputView target) |
static <X> List<StreamWindow<X>> |
StreamWindow.split(StreamWindow<X> window,
int n)
Splits the window into n equal (if possible) sizes.
|
| Modifier and Type | Method and Description |
|---|---|
static <R> StreamWindow<R> |
StreamWindow.merge(List<StreamWindow<R>> windows)
Merges compatible windows together.
|
| Constructor and Description |
|---|
StreamWindow(StreamWindow<T> window)
Creates a shallow copy of the window
|
StreamWindow(StreamWindow<T> window,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
Creates a deep copy of the window using the given serializer
|
| Modifier and Type | Method and Description |
|---|---|
protected StreamWindow<T> |
WindowBuffer.createEmptyWindow() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SlidingPreReducer.addFinalAggregate(StreamWindow<T> currentWindow) |
boolean |
SlidingGroupedPreReducer.addFinalAggregate(StreamWindow<T> currentWindow) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
WindowBuffer.emitWindow(org.apache.flink.util.Collector<StreamWindow<T>> collector) |
void |
TumblingPreReducer.emitWindow(org.apache.flink.util.Collector<StreamWindow<T>> collector) |
void |
TumblingGroupedPreReducer.emitWindow(org.apache.flink.util.Collector<StreamWindow<T>> collector) |
void |
SlidingPreReducer.emitWindow(org.apache.flink.util.Collector<StreamWindow<T>> collector) |
void |
JumpingTimePreReducer.emitWindow(org.apache.flink.util.Collector<StreamWindow<T>> collector) |
void |
JumpingTimeGroupedPreReducer.emitWindow(org.apache.flink.util.Collector<StreamWindow<T>> collector) |
void |
JumpingCountPreReducer.emitWindow(org.apache.flink.util.Collector<StreamWindow<T>> collector) |
void |
JumpingCountGroupedPreReducer.emitWindow(org.apache.flink.util.Collector<StreamWindow<T>> collector) |
void |
BasicWindowBuffer.emitWindow(org.apache.flink.util.Collector<StreamWindow<T>> collector) |
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.