I want to create a custom component with the new talend component kit. The custom component can have more then one input. In the old version I can set min_input=1, how can I configure that with the new component kit? I see, I can add more:
@Input("myInput") final MyInput defaultInput
in the method header, but I want any number of inputs. I have try it with a list or an array. It does not work.
And how can I add a MultiSchema like we have in tFileInputMSDelimited:
I see @Option @Structure but that does not work...
As you mentionned, you can define N inputs using @Input (it is mentionned here in the doc). However the framework will not support a dynamic number of inputs (or outputs) nor a customizable join strategy directly for now. The solution to do it now is to define your join model in a single record, each column being an input and use an aggregation component before your processor to build the record as you intend. It will provide you the "guess schema" feature and let you have all the flexibility you need to configure the joining logic.
A t*Map () or tXMLMap should enable you to prepare your record for your processor.
Watch the recorded webinar!
Create systems and workflow to manage clean data ingestion and data transformation.
Introduction to Talend Open Studio for Data Integration.
Test drive Talend's enterprise products.