@Override public void open() throws Exception { super.open(); outTuple = outSerializer.createInstance(); } }
@Override public void open() throws Exception { super.open(); state = getPartitionedState(stateDescriptor); } }
@Override public void open() throws Exception { super.open(); watermarks = new ArrayList<>(); }
@Override public void open() throws Exception { super.open(); FunctionUtils.openFunction(userFunction, new Configuration()); }
@Override public void open() throws Exception { super.open(); this.timerService = getInternalTimerService( "test-timers", VoidNamespaceSerializer.INSTANCE, this); }
@Override public void open() throws Exception { super.open(); timerService = getInternalTimerService( "timer", LongSerializer.INSTANCE, this); }
@Override public void open() throws Exception { super.open(); timerService = getInternalTimerService( "timer", LongSerializer.INSTANCE, this); }
this.format.open(currentSplit);
@Override public void open() throws Exception { super.open(); this.state = getKeyedStateBackend().getPartitionedState( VoidNamespace.INSTANCE, VoidNamespaceSerializer.INSTANCE, stateDescriptor); }
@Override public void open() throws Exception { super.open(); committer.setOperatorId(id); committer.open(); checkpointStorage = getContainingTask().getCheckpointStorage(); cleanRestoredHandles(); }
@Override public void open() throws Exception { super.open(); timerService = getInternalTimerService( "timer", LongSerializer.INSTANCE, this); getRuntimeContext().addAccumulator(SUCCESSFUL_PROCESS_CHECK_ACCUMULATOR, new IntCounter()); getRuntimeContext().addAccumulator(SUCCESSFUL_EVENT_TIME_CHECK_ACCUMULATOR, new IntCounter()); getRuntimeContext().addAccumulator(SUCCESSFUL_PROCESSING_TIME_CHECK_ACCUMULATOR, new IntCounter()); }
@Override public void open() throws Exception { super.open(); // have to re-register to ensure that our onEventTime() is called getInternalTimerService( "timer", LongSerializer.INSTANCE, this); getRuntimeContext().addAccumulator(SUCCESSFUL_PROCESS_CHECK_ACCUMULATOR, new IntCounter()); getRuntimeContext().addAccumulator(SUCCESSFUL_EVENT_TIME_CHECK_ACCUMULATOR, new IntCounter()); getRuntimeContext().addAccumulator(SUCCESSFUL_PROCESSING_TIME_CHECK_ACCUMULATOR, new IntCounter()); }
@Override public void open() throws Exception { super.open(); checkState(this.reader == null, "The reader is already initialized."); checkState(this.serializer != null, "The serializer has not been set. " + "Probably the setOutputType() was not called. Please report it."); this.format.setRuntimeContext(getRuntimeContext()); this.format.configure(new Configuration()); this.checkpointLock = getContainingTask().getCheckpointLock(); // set the reader context based on the time characteristic final TimeCharacteristic timeCharacteristic = getOperatorConfig().getTimeCharacteristic(); final long watermarkInterval = getRuntimeContext().getExecutionConfig().getAutoWatermarkInterval(); this.readerContext = StreamSourceContexts.getSourceContext( timeCharacteristic, getProcessingTimeService(), checkpointLock, getContainingTask().getStreamStatusMaintainer(), output, watermarkInterval, -1); // and initialize the split reading thread this.reader = new SplitReader<>(format, serializer, readerContext, checkpointLock, restoredReaderState); this.restoredReaderState = null; this.reader.start(); }
@Override public void open() throws Exception { super.open(); startSiddhiManager(); }
@Override public void open() throws Exception { super.open(); outTuple = outSerializer.createInstance(); } }
@Override public void open() throws Exception { super.open(); FunctionUtils.openFunction(userFunction, new Configuration()); }
@Override public void open() throws Exception { super.open(); FunctionUtils.openFunction(userFunction, new Configuration()); }
@Override public void open() throws Exception { super.open(); this.context = new ProcessContext(operator, new TimestampedCollector<>(output), this.timerInternals); }
@Override public void open() throws Exception { super.open(); committer.setOperatorId(id); committer.open(); checkpointStorage = getContainingTask().getCheckpointStorage(); cleanRestoredHandles(); }
@Override public void open() throws Exception { super.open(); committer.setOperatorId(id); committer.open(); checkpointStorage = getContainingTask().getCheckpointStorage(); cleanRestoredHandles(); }