diff --git a/integration-tests/mdi/0011-data-grid-parent.hpl b/integration-tests/mdi/0011-data-grid-parent.hpl index d869068577f..72751be3c67 100644 --- a/integration-tests/mdi/0011-data-grid-parent.hpl +++ b/integration-tests/mdi/0011-data-grid-parent.hpl @@ -19,7 +19,7 @@ limitations under the License. --> - 0030-data-grid-parent + 0011-data-grid-parent Y @@ -34,8 +34,6 @@ limitations under the License. 2021/05/25 12:27:40.781 - 2021/05/25 12:27:40.781 - H4sIAAAAAAAAAAMAAAAAAAAAAAA= - N @@ -67,40 +65,48 @@ limitations under the License. none + + + this;1;is;13/05/2021;10000000000000000 + ; + + + some;2;test;13/05/2021;10000000000000000 + ; + + + data;3;for;13/05/2021;10000000000000000 + ; + + + data;4;grid;13/05/2021;10000000000000000 + ; + + - N -1 - dataLines -1 + + N + dataLines + + + String - N -1 - splitfield -1 + + N + splitfield + + + String - - - this,1,is,13/05/2021,10000000000000000 - , - - - some,2,test,13/05/2021,10000000000000000 - , - - - data,3,for,13/05/2021,10000000000000000 - , - - - data,4,grid,13/05/2021,10000000000000000 - , - - 128 @@ -136,6 +142,7 @@ limitations under the License. ${PROJECT_HOME}/0011-data-grid-child.hpl + OUTPUT @@ -170,6 +177,7 @@ limitations under the License. + N N @@ -269,71 +277,6 @@ limitations under the License. none - - - N - -1 - name - -1 - String - - - N - -1 - type - -1 - String - - - N - -1 - format - -1 - String - - - N - -1 - length - -1 - String - - - N - -1 - precision - -1 - String - - - N - -1 - currency - -1 - String - - - N - -1 - decimal - -1 - String - - - N - -1 - group - -1 - String - - - N - -1 - setEmpty - -1 - String - - field1 @@ -391,6 +334,71 @@ limitations under the License. N + + + -1 + -1 + N + name + String + + + -1 + -1 + N + type + String + + + -1 + -1 + N + format + String + + + -1 + -1 + N + length + String + + + -1 + -1 + N + precision + String + + + -1 + -1 + N + currency + String + + + -1 + -1 + N + decimal + String + + + -1 + -1 + N + group + String + + + -1 + -1 + N + setEmpty + String + + 128 diff --git a/plugins/transforms/datagrid/src/main/java/org/apache/hop/pipeline/transforms/datagrid/DataGridDataMeta.java b/plugins/transforms/datagrid/src/main/java/org/apache/hop/pipeline/transforms/datagrid/DataGridDataMeta.java index 0131a67df26..4f976703f93 100644 --- a/plugins/transforms/datagrid/src/main/java/org/apache/hop/pipeline/transforms/datagrid/DataGridDataMeta.java +++ b/plugins/transforms/datagrid/src/main/java/org/apache/hop/pipeline/transforms/datagrid/DataGridDataMeta.java @@ -20,9 +20,13 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import lombok.Getter; +import lombok.Setter; import org.apache.hop.core.Const; import org.apache.hop.metadata.api.HopMetadataProperty; +@Getter +@Setter public class DataGridDataMeta implements Cloneable { @HopMetadataProperty(key = "item") @@ -51,28 +55,8 @@ public DataGridDataMeta clone() { return new DataGridDataMeta(this); } - public List getDatalines() { - return datalines; - } - - public void setDatalines(List datalines) { - this.datalines = datalines; - } - - public String getInjectionDatalines() { - return injectionDatalines; - } - - public void setInjectionDatalines(String injectionDatalines) { - this.injectionDatalines = injectionDatalines; - this.datalines = Arrays.asList(injectionDatalines.split(Const.NVL(splitter, ","))); - } - - public String getSplitter() { - return splitter; - } - public void setSplitter(String splitter) { + this.datalines = Arrays.asList(injectionDatalines.split(Const.NVL(splitter, ","))); this.splitter = splitter; } }