当前位置: 首页>>代码示例>>Java>>正文


Java ResultFile.getRow方法代码示例

本文整理汇总了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;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:25,代码来源:FilesFromResult.java

示例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);
       }
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:19,代码来源:FilesFromResultMeta.java

示例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;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:27,代码来源:FilesFromResult.java

示例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);
       }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:19,代码来源:FilesFromResultMeta.java

示例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;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:26,代码来源:FilesFromResult.java

示例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 );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:20,代码来源:FilesFromResultMeta.java


注:本文中的org.pentaho.di.core.ResultFile.getRow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。