Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi All,
I'm posting here a new question around this topic because the other one is very old.
I'm trying to create a component and get the structure of the schema coming in in the "Component Tab", in design time, with Studio v8.
very basic layout with only one item :
Have you been able to implement this ? any idea what I'm missing ? thank you for your help.
package com.konvertilo.talend.components.processor;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.konvertilo.talend.components.dataset.CustomDataset;
import lombok.Data;
import org.talend.sdk.component.api.configuration.Option;
import org.talend.sdk.component.api.configuration.ui.layout.GridLayout;
import org.talend.sdk.component.api.meta.Documentation;
import org.talend.sdk.component.api.configuration.ui.widget.Structure;
import org.talend.sdk.component.api.record.Record;
@Data
@GridLayout({ @GridLayout.Row({ "dataset" }),
@GridLayout.Row({ "incomingSchema" }) })
public class KRankProcessorConfiguration implements Serializable {
@Option
@Documentation("My dataset.")
private CustomDataset dataset;
@Option
@Documentation("My Schema.")
@Structure(type = Structure.Type.IN)
private List<SchemaInfo> incomingSchema = new ArrayList<>();
@Data
@GridLayout({ @GridLayout.Row({ "label", "key", "talendType", "nullable", "pattern" }) })
@Documentation("Schema definition.")
public static class SchemaInfo implements Serializable {
@Option
@Documentation("Column name.")
private String label;
@Option
@Documentation("Is it a Key column.")
private boolean key;
@Option
@Documentation("Talend type such as id_String.")
private String talendType;
@Option
@Documentation("Is it a Nullable column.")
private boolean nullable;
@Option
@Documentation("Pattern used for datetime processing.")
private String pattern = "yyyy-MM-dd HH:mm";
}
}
lack of feedback. i close this.
Am I the only one to question this ?
lack of feedback. i close this.