public class CoStreamWindow<IN1,IN2,OUT> extends AbstractUdfStreamOperator<OUT,CoWindowFunction<IN1,IN2,OUT>> implements TwoInputStreamOperator<IN1,IN2,OUT>
| Modifier and Type | Class and Description |
|---|---|
protected class |
CoStreamWindow.StreamWindow |
StreamOperator.ChainingStrategy| Modifier and Type | Field and Description |
|---|---|
protected CircularFifoList<StreamRecord<IN1>> |
circularList1 |
protected CircularFifoList<StreamRecord<IN2>> |
circularList2 |
protected long |
nextRecordTime |
protected long |
slideSize |
protected long |
startTime |
protected TimestampWrapper<IN1> |
timeStamp1 |
protected TimestampWrapper<IN2> |
timeStamp2 |
protected CoStreamWindow.StreamWindow |
window |
protected long |
windowSize |
userFunctionchainingStrategy, executionConfig, inputCopyDisabled, output, runtimeContext| Constructor and Description |
|---|
CoStreamWindow(CoWindowFunction<IN1,IN2,OUT> coWindowFunction,
long windowSize,
long slideInterval,
TimestampWrapper<IN1> timeStamp1,
TimestampWrapper<IN2> timeStamp2) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
callUserFunction() |
void |
close()
This method is called after no more elements for can arrive for processing.
|
void |
processElement1(IN1 element) |
void |
processElement2(IN2 element) |
void |
setSlideSize(long slideSize) |
confirmCheckpointCompleted, getStateSnapshotFromFunction, getUserFunction, open, restoreInitialState, setupdisableInputCopy, getChainingStrategy, isInputCopyingDisabled, setChainingStrategyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChainingStrategy, isInputCopyingDisabled, open, setChainingStrategy, setupprotected long windowSize
protected long slideSize
protected CircularFifoList<StreamRecord<IN1>> circularList1
protected CircularFifoList<StreamRecord<IN2>> circularList2
protected TimestampWrapper<IN1> timeStamp1
protected TimestampWrapper<IN2> timeStamp2
protected CoStreamWindow.StreamWindow window
protected long startTime
protected long nextRecordTime
public CoStreamWindow(CoWindowFunction<IN1,IN2,OUT> coWindowFunction, long windowSize, long slideInterval, TimestampWrapper<IN1> timeStamp1, TimestampWrapper<IN2> timeStamp2)
public void processElement1(IN1 element) throws Exception
processElement1 in interface TwoInputStreamOperator<IN1,IN2,OUT>Exceptionpublic void processElement2(IN2 element) throws Exception
processElement2 in interface TwoInputStreamOperator<IN1,IN2,OUT>Exceptionpublic void close()
throws Exception
StreamOperatorclose in interface StreamOperator<OUT>close in class AbstractUdfStreamOperator<OUT,CoWindowFunction<IN1,IN2,OUT>>Exceptionpublic void setSlideSize(long slideSize)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.