Exemplo n.º 1
0
 @Override
 public TransformResult finishBundle() throws Exception {
   // State is initialized within the constructor. It can never be null.
   CopyOnAccessInMemoryStateInternals<?> state = stepContext.commitState();
   return StepTransformResult.withHold(application, state.getEarliestWatermarkHold())
       .withState(state)
       .addOutput(outputBundles)
       .withTimerUpdate(stepContext.getTimerUpdate())
       .withAggregatorChanges(aggregatorChanges)
       .addUnprocessedElements(unprocessedElements.build())
       .build();
 }