| 限定符和类型 | 方法和说明 |
|---|---|
WindowedStream<T,K,W> |
WindowedStream.allowedLateness(Time lateness)
Sets the time by which elements are allowed to be late.
|
CoGroupedStreams.WithWindow<T1,T2,KEY,W> |
CoGroupedStreams.WithWindow.allowedLateness(Time newLateness)
Sets the time by which elements are allowed to be late.
|
AllWindowedStream<T,W> |
AllWindowedStream.allowedLateness(Time lateness)
Sets the time by which elements are allowed to be late.
|
JoinedStreams.WithWindow<T1,T2,KEY,W> |
JoinedStreams.WithWindow.allowedLateness(Time newLateness)
Sets the time by which elements are allowed to be late.
|
KeyedStream.IntervalJoined<T1,T2,KEY> |
KeyedStream.IntervalJoin.between(Time lowerBound,
Time upperBound)
Specifies the time boundaries over which the join operation works, so that
leftElement.timestamp + lowerBound <= rightElement.timestamp <= leftElement.timestamp + upperBound
By default both the lower and the upper bound are inclusive.
|
WindowedStream<T,KEY,TimeWindow> |
KeyedStream.timeWindow(Time size)
Windows this
KeyedStream into tumbling time windows. |
WindowedStream<T,KEY,TimeWindow> |
KeyedStream.timeWindow(Time size,
Time slide)
Windows this
KeyedStream into sliding time windows. |
AllWindowedStream<T,TimeWindow> |
DataStream.timeWindowAll(Time size)
Windows this
DataStream into tumbling time windows. |
AllWindowedStream<T,TimeWindow> |
DataStream.timeWindowAll(Time size,
Time slide)
Windows this
DataStream into sliding time windows. |
| 构造器和说明 |
|---|
WithWindow(DataStream<T1> input1,
DataStream<T2> input2,
org.apache.flink.api.java.functions.KeySelector<T1,KEY> keySelector1,
org.apache.flink.api.java.functions.KeySelector<T2,KEY> keySelector2,
org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType,
WindowAssigner<? super CoGroupedStreams.TaggedUnion<T1,T2>,W> windowAssigner,
Trigger<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> trigger,
Evictor<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> evictor,
Time allowedLateness) |
WithWindow(DataStream<T1> input1,
DataStream<T2> input2,
org.apache.flink.api.java.functions.KeySelector<T1,KEY> keySelector1,
org.apache.flink.api.java.functions.KeySelector<T2,KEY> keySelector2,
org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType,
WindowAssigner<? super CoGroupedStreams.TaggedUnion<T1,T2>,W> windowAssigner,
Trigger<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> trigger,
Evictor<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> evictor,
Time allowedLateness) |
| 构造器和说明 |
|---|
BoundedOutOfOrdernessTimestampExtractor(Time maxOutOfOrderness) |
| 限定符和类型 | 方法和说明 |
|---|---|
static TumblingTimeWindows |
TumblingTimeWindows.of(Time size)
已过时。
Please use
TumblingEventTimeWindows.of(Time). |
static TumblingEventTimeWindows |
TumblingEventTimeWindows.of(Time size)
Creates a new
TumblingEventTimeWindows WindowAssigner that assigns elements
to time windows based on the element timestamp. |
static TumblingProcessingTimeWindows |
TumblingProcessingTimeWindows.of(Time size)
Creates a new
TumblingProcessingTimeWindows WindowAssigner that assigns
elements to time windows based on the element timestamp. |
static TumblingEventTimeWindows |
TumblingEventTimeWindows.of(Time size,
Time offset)
Creates a new
TumblingEventTimeWindows WindowAssigner that assigns elements
to time windows based on the element timestamp and offset. |
static SlidingProcessingTimeWindows |
SlidingProcessingTimeWindows.of(Time size,
Time slide)
Creates a new
SlidingProcessingTimeWindows WindowAssigner that assigns
elements to sliding time windows based on the element timestamp. |
static SlidingEventTimeWindows |
SlidingEventTimeWindows.of(Time size,
Time slide)
Creates a new
SlidingEventTimeWindows WindowAssigner that assigns elements to
sliding time windows based on the element timestamp. |
static TumblingProcessingTimeWindows |
TumblingProcessingTimeWindows.of(Time size,
Time offset)
Creates a new
TumblingProcessingTimeWindows WindowAssigner that assigns
elements to time windows based on the element timestamp and offset. |
static SlidingTimeWindows |
SlidingTimeWindows.of(Time size,
Time slide)
已过时。
Please use
SlidingEventTimeWindows.of(Time, Time). |
static SlidingProcessingTimeWindows |
SlidingProcessingTimeWindows.of(Time size,
Time slide,
Time offset)
Creates a new
SlidingProcessingTimeWindows WindowAssigner that assigns
elements to time windows based on the element timestamp and offset. |
static SlidingEventTimeWindows |
SlidingEventTimeWindows.of(Time size,
Time slide,
Time offset)
Creates a new
SlidingEventTimeWindows WindowAssigner that assigns elements to
time windows based on the element timestamp and offset. |
static ProcessingTimeSessionWindows |
ProcessingTimeSessionWindows.withGap(Time size)
Creates a new
SessionWindows WindowAssigner that assigns elements to sessions
based on the element timestamp. |
static EventTimeSessionWindows |
EventTimeSessionWindows.withGap(Time size)
Creates a new
SessionWindows WindowAssigner that assigns elements to sessions
based on the element timestamp. |
| 限定符和类型 | 方法和说明 |
|---|---|
static <W extends Window> |
TimeEvictor.of(Time windowSize)
Creates a
TimeEvictor that keeps the given number of elements. |
static <W extends Window> |
TimeEvictor.of(Time windowSize,
boolean doEvictAfter)
Creates a
TimeEvictor that keeps the given number of elements. |
| 限定符和类型 | 方法和说明 |
|---|---|
static Time |
Time.days(long days)
Creates a new
Time that represents the given number of days. |
static Time |
Time.hours(long hours)
Creates a new
Time that represents the given number of hours. |
static Time |
Time.milliseconds(long milliseconds)
Creates a new
Time that represents the given number of milliseconds. |
static Time |
Time.minutes(long minutes)
Creates a new
Time that represents the given number of minutes. |
static Time |
Time.of(long size,
TimeUnit unit)
|
static Time |
Time.seconds(long seconds)
Creates a new
Time that represents the given number of seconds. |
| 限定符和类型 | 方法和说明 |
|---|---|
static <W extends Window> |
ContinuousProcessingTimeTrigger.of(Time interval)
Creates a trigger that continuously fires based on the given interval.
|
static <W extends Window> |
ContinuousEventTimeTrigger.of(Time interval)
Creates a trigger that continuously fires based on the given interval.
|
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.