public abstract class TemporalOperator<I1,I2,OP extends TemporalWindow<OP>> extends Object
| Modifier and Type | Field and Description |
|---|---|
DataStream<I1> |
input1 |
DataStream<I2> |
input2 |
long |
slideInterval |
TimestampWrapper<I1> |
timeStamp1 |
TimestampWrapper<I2> |
timeStamp2 |
long |
windowSize |
| Constructor and Description |
|---|
TemporalOperator(DataStream<I1> input1,
DataStream<I2> input2) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract OP |
createNextWindowOperator() |
OP |
onWindow(long length,
Timestamp<I1> timeStamp1,
Timestamp<I2> timeStamp2)
Continues a temporal transformation.
Defines the window size on which the two DataStreams will be transformed.To define sliding windows call TemporalWindow.every(long, java.util.concurrent.TimeUnit)
on the resulting operator. |
OP |
onWindow(long length,
Timestamp<I1> timeStamp1,
Timestamp<I2> timeStamp2,
long startTime)
Continues a temporal transformation.
Defines the window size on which the two DataStreams will be transformed.To define sliding windows call TemporalWindow.every(long, java.util.concurrent.TimeUnit)
on the resulting operator. |
OP |
onWindow(long length,
TimeUnit timeUnit)
Continues a temporal transformation.
Defines the window size on which the two DataStreams will be transformed. |
public final DataStream<I1> input1
public final DataStream<I2> input2
public long windowSize
public long slideInterval
public TimestampWrapper<I1> timeStamp1
public TimestampWrapper<I2> timeStamp2
public TemporalOperator(DataStream<I1> input1, DataStream<I2> input2)
public OP onWindow(long length, TimeUnit timeUnit)
TemporalWindow.every(long, java.util.concurrent.TimeUnit) on the
resulting operator.length - The size of the window in milliseconds.timeUnit - The unit if time to be usedpublic OP onWindow(long length, Timestamp<I1> timeStamp1, Timestamp<I2> timeStamp2)
TemporalWindow.every(long, java.util.concurrent.TimeUnit)
on the resulting operator.length - The size of the window in milliseconds.timeStamp1 - The timestamp used to extract time from the elements of the
first data stream.timeStamp2 - The timestamp used to extract time from the elements of the
second data stream.public OP onWindow(long length, Timestamp<I1> timeStamp1, Timestamp<I2> timeStamp2, long startTime)
TemporalWindow.every(long, java.util.concurrent.TimeUnit)
on the resulting operator.length - The size of the window in milliseconds.timeStamp1 - The timestamp used to extract time from the elements of the
first data stream.timeStamp2 - The timestamp used to extract time from the elements of the
second data stream.startTime - The start time to measure the first windowprotected abstract OP createNextWindowOperator()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.