use of org.pentaho.di.core.row.RowMeta in project pentaho-kettle by pentaho.
the class JmsConsumerMeta method getRowMeta.
public RowMeta getRowMeta(String s, VariableSpace variableSpace) {
RowMeta rowMeta = new RowMeta();
rowMeta.addValueMeta(new ValueMetaString("message"));
return rowMeta;
}
use of org.pentaho.di.core.row.RowMeta in project pentaho-kettle by pentaho.
the class JmsDelegate method getRowMeta.
/**
* Creates a rowMeta for output field names
*/
RowMetaInterface getRowMeta() {
RowMeta rowMeta = new RowMeta();
rowMeta.addValueMeta(new ValueMetaString(messageField));
rowMeta.addValueMeta(new ValueMetaString(destinationField));
return rowMeta;
}
use of org.pentaho.di.core.row.RowMeta in project pentaho-kettle by pentaho.
the class MQTTConsumerMeta method getRowMeta.
@Override
public RowMeta getRowMeta(String origin, VariableSpace space) {
RowMeta rowMeta = new RowMeta();
rowMeta.addValueMeta(new ValueMetaString(msgOutputName));
rowMeta.addValueMeta(new ValueMetaString(topicOutputName));
return rowMeta;
}
use of org.pentaho.di.core.row.RowMeta in project pentaho-kettle by pentaho.
the class XMLInputSax method processRow.
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException {
if (first) {
first = false;
data.outputRowMeta = new RowMeta();
meta.getFields(data.outputRowMeta, getStepname(), null, null, this, repository, metaStore);
// For String to <type> conversions, we allocate a conversion meta data row as well...
//
data.convertRowMeta = data.outputRowMeta.cloneToType(ValueMetaInterface.TYPE_STRING);
}
Object[] outputRowData = getRowFromXML();
if (outputRowData == null) {
// signal end to receiver(s)
setOutputDone();
// This is the end of this step.
return false;
}
if (log.isRowLevel()) {
logRowlevel("Read row: " + data.outputRowMeta.getString(outputRowData));
}
putRow(data.outputRowMeta, outputRowData);
//
if (meta.getRowLimit() > 0 && data.rownr >= meta.getRowLimit()) {
setOutputDone();
return false;
}
return true;
}
use of org.pentaho.di.core.row.RowMeta in project pentaho-kettle by pentaho.
the class SalesforceUpdateMetaTest method testGetFields.
@Test
public void testGetFields() throws KettleStepException {
SalesforceUpdateMeta meta = new SalesforceUpdateMeta();
meta.setDefault();
RowMetaInterface r = new RowMeta();
meta.getFields(r, "thisStep", null, null, new Variables(), null, null);
assertEquals(0, r.size());
r.clear();
r.addValueMeta(new ValueMetaString("testString"));
meta.getFields(r, "thisStep", null, null, new Variables(), null, null);
assertEquals(1, r.size());
assertEquals(ValueMetaInterface.TYPE_STRING, r.getValueMeta(0).getType());
assertEquals("testString", r.getValueMeta(0).getName());
}
Aggregations