T - The type of the elements on which this operator works.public class BucketStreamSortOperator<T> extends AbstractStreamOperator<T> implements OneInputStreamOperator<T,T>
chainingStrategy, LOG, output| Constructor and Description |
|---|
BucketStreamSortOperator(long interval)
Creates a new sorting operator that creates buckets with the given interval.
|
| Modifier and Type | Method and Description |
|---|---|
void |
open()
This method is called immediately before any elements are processed, it should contain the
operator's initialization logic.
|
void |
processElement(StreamRecord<T> record)
Processes one element that arrived at this operator.
|
void |
processWatermark(Watermark mark)
Processes a
Watermark. |
close, createKeyValueState, createKeyValueState, disableInputCopy, dispose, getChainingStrategy, getContainingTask, getExecutionConfig, getOperatorConfig, getRuntimeContext, getStateBackend, getUserCodeClassloader, isInputCopyingDisabled, notifyOfCompletedCheckpoint, registerTimer, restoreState, setChainingStrategy, setKeyContext, setKeyContextElement, setup, snapshotOperatorStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, dispose, getChainingStrategy, isInputCopyingDisabled, notifyOfCompletedCheckpoint, restoreState, setChainingStrategy, setKeyContextElement, setup, snapshotOperatorStatepublic BucketStreamSortOperator(long interval)
interval - The size (in time) of one bucket.public void open()
throws Exception
AbstractStreamOperatorThe default implementation does nothing.
open in interface StreamOperator<T>open in class AbstractStreamOperator<T>Exception - An exception in this method causes the operator to fail.public void processElement(StreamRecord<T> record) throws Exception
OneInputStreamOperatorprocessElement in interface OneInputStreamOperator<T,T>Exceptionpublic void processWatermark(Watermark mark) throws Exception
OneInputStreamOperatorWatermark.
This method is guaranteed to not be called concurrently with other methods of the operator.processWatermark in interface OneInputStreamOperator<T,T>ExceptionWatermarkCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.