@Override protected void cleanup() throws Exception { if (inputProcessor != null) { inputProcessor.cleanup(); } }
@Override protected void run() throws Exception { // cache processor reference on the stack, to make the code more JIT friendly final StreamTwoInputProcessor<IN1, IN2> inputProcessor = this.inputProcessor; while (running && inputProcessor.processInput()) { // all the work happens in the "processInput" method } }
this.inputProcessor = new StreamTwoInputProcessor<>( inputList1, inputList2, inputDeserializer1, inputDeserializer2, inputProcessor.setMetricGroup(getEnvironment().getMetricGroup().getIOMetricGroup());
this.inputProcessor = new StreamTwoInputProcessor<>( inputList1, inputList2, inputDeserializer1, inputDeserializer2,
this.inputProcessor = new StreamTwoInputProcessor<>( inputList1, inputList2, inputDeserializer1, inputDeserializer2,
@Override protected void cleanup() throws Exception { if (inputProcessor != null) { inputProcessor.cleanup(); } }
@Override protected void run() throws Exception { // cache processor reference on the stack, to make the code more JIT friendly final StreamTwoInputProcessor<IN1, IN2> inputProcessor = this.inputProcessor; while (running && inputProcessor.processInput()) { // all the work happens in the "processInput" method } }
this.inputProcessor = new StreamTwoInputProcessor<>( inputList1, inputList2, inputDeserializer1, inputDeserializer2,
@Override protected void cleanup() throws Exception { if (inputProcessor != null) { inputProcessor.cleanup(); } }
@Override protected void run() throws Exception { // cache processor reference on the stack, to make the code more JIT friendly final StreamTwoInputProcessor<IN1, IN2> inputProcessor = this.inputProcessor; while (running && inputProcessor.processInput()) { // all the work happens in the "processInput" method } }
@Override protected void cleanup() throws Exception { if (inputProcessor != null) { inputProcessor.cleanup(); } }
@Override protected void run() throws Exception { // cache processor reference on the stack, to make the code more JIT friendly final StreamTwoInputProcessor<IN1, IN2> inputProcessor = this.inputProcessor; while (running && inputProcessor.processInput()) { // all the work happens in the "processInput" method } }