コード例 #1
0
 @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());
 }
コード例 #2
0
 @Override
 public void closeTask() throws Exception {
   RegularPactTask.closeUserCode(this.mapper);
 }
コード例 #3
0
 @Override
 public void openTask() throws Exception {
   Configuration stubConfig = this.config.getStubParameters();
   RegularPactTask.openUserCode(this.mapper, stubConfig);
 }