@Override public void setup(AbstractInvokable parent) { @SuppressWarnings("unchecked") final GenericMapper<IT, OT> mapper = RegularPactTask.instantiateUserCode(this.config, userCodeClassLoader, GenericMapper.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); }