}
private void initMainRowStream() throws KettleException {
// steps inputRowMeta might be null in case we have info steps only, or there's no input to begin with
RowMetaInterface inputRowMeta = step.getInputRowMeta();
if (inputRowMeta == null) {
inputRowMeta = new RowMeta();
}
data.inputRowMeta = inputRowMeta.clone();
data.inputFieldNames = data.inputRowMeta.getFieldNames();
data.outputRowMeta = inputRowMeta.clone();
meta.getFields(data.outputRowMeta, step.getStepname(), null, null, step);
data.cacheFieldNames(data.inputRowMeta);
data.cacheFieldNames(data.outputRowMeta);