@Override public void setup(AbstractInvokable parent) { @SuppressWarnings("unchecked") final GenericCollectorMap<IT, OT> mapper = RegularPactTask.instantiateUserCode( this.config, userCodeClassLoader, GenericCollectorMap.class); this.mapper = mapper; mapper.setRuntimeContext(getUdfRuntimeContext()); }
@Override public void closeTask() throws Exception { RegularPactTask.closeUserCode(this.mapper); }
@Override public void openTask() throws Exception { Configuration stubConfig = this.config.getStubParameters(); RegularPactTask.openUserCode(this.mapper, stubConfig); }
private String formatLogString(String message) { return RegularPactTask.constructLogString(message, getEnvironment().getTaskName(), this); }