本文整理汇总了Java中org.pentaho.di.core.ResultFile.getRow方法的典型用法代码示例。如果您正苦于以下问题:Java ResultFile.getRow方法的具体用法?Java ResultFile.getRow怎么用?Java ResultFile.getRow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.ResultFile
的用法示例。
在下文中一共展示了ResultFile.getRow方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processRow
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException
{
if (data.resultFilesList == null || getLinesRead() >= data.resultFilesList.size())
{
setOutputDone();
return false;
}
ResultFile resultFile = (ResultFile) data.resultFilesList.get((int) getLinesRead());
RowMetaAndData r = resultFile.getRow();
data.outputRowMeta = r.getRowMeta();
smi.getFields(data.outputRowMeta, getStepname(), null, null, this);
incrementLinesRead();
putRow(data.outputRowMeta, r.getData()); // copy row to possible alternate
// rowset(s).
if (checkFeedback(getLinesRead()))
logBasic(Messages.getString("FilesFromResult.Log.LineNumber") + getLinesRead()); //$NON-NLS-1$
return true;
}
示例2: getFields
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void getFields(RowMetaInterface r, String name, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space) throws KettleStepException
{
// Add the fields from a ResultFile
try
{
ResultFile resultFile = new ResultFile(ResultFile.FILE_TYPE_GENERAL, KettleVFS.getFileObject("foo.bar"), "parentOrigin", "origin");
RowMetaAndData add = resultFile.getRow();
// Set the origin on the fields...
for (int i=0;i<add.size();i++) add.getValueMeta(i).setOrigin(name);
r.addRowMeta(add.getRowMeta());
}
catch(IOException e)
{
throw new KettleStepException(e);
}
}
示例3: processRow
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException
{
if (data.resultFilesList == null || getLinesRead() >= data.resultFilesList.size())
{
setOutputDone();
return false;
}
ResultFile resultFile = (ResultFile) data.resultFilesList.get((int) getLinesRead());
RowMetaAndData r = resultFile.getRow();
if (first) {
first=false;
data.outputRowMeta = new RowMeta();
smi.getFields(data.outputRowMeta, getStepname(), null, null, this);
}
incrementLinesRead();
putRow(data.outputRowMeta, r.getData()); // copy row to possible alternate
// rowset(s).
if (checkFeedback(getLinesRead()))
logBasic(BaseMessages.getString(PKG, "FilesFromResult.Log.LineNumber") + getLinesRead()); //$NON-NLS-1$
return true;
}
示例4: getFields
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void getFields(RowMetaInterface r, String name, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space) throws KettleStepException
{
// Add the fields from a ResultFile
try
{
ResultFile resultFile = new ResultFile(ResultFile.FILE_TYPE_GENERAL, KettleVFS.getFileObject("foo.bar", space), "parentOrigin", "origin");
RowMetaAndData add = resultFile.getRow();
// Set the origin on the fields...
for (int i=0;i<add.size();i++) add.getValueMeta(i).setOrigin(name);
r.addRowMeta(add.getRowMeta());
}
catch(KettleFileException e)
{
throw new KettleStepException(e);
}
}
示例5: processRow
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public boolean processRow( StepMetaInterface smi, StepDataInterface sdi ) throws KettleException {
if ( data.resultFilesList == null || getLinesRead() >= data.resultFilesList.size() ) {
setOutputDone();
return false;
}
ResultFile resultFile = data.resultFilesList.get( (int) getLinesRead() );
RowMetaAndData r = resultFile.getRow();
if ( first ) {
first = false;
data.outputRowMeta = new RowMeta();
smi.getFields( data.outputRowMeta, getStepname(), null, null, this, repository, metaStore );
}
incrementLinesRead();
putRow( data.outputRowMeta, r.getData() ); // copy row to possible alternate
// rowset(s).
if ( checkFeedback( getLinesRead() ) ) {
logBasic( BaseMessages.getString( PKG, "FilesFromResult.Log.LineNumber" ) + getLinesRead() );
}
return true;
}
示例6: getFields
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void getFields( RowMetaInterface r, String name, RowMetaInterface[] info, StepMeta nextStep,
VariableSpace space, Repository repository, IMetaStore metaStore ) throws KettleStepException {
// Add the fields from a ResultFile
try {
ResultFile resultFile =
new ResultFile(
ResultFile.FILE_TYPE_GENERAL, KettleVFS.getFileObject( "foo.bar", space ), "parentOrigin", "origin" );
RowMetaAndData add = resultFile.getRow();
// Set the origin on the fields...
for ( int i = 0; i < add.size(); i++ ) {
add.getValueMeta( i ).setOrigin( name );
}
r.addRowMeta( add.getRowMeta() );
} catch ( KettleFileException e ) {
throw new KettleStepException( e );
}
}