本文整理汇总了Java中org.pentaho.di.repository.RepositoryElementMetaInterface.getDescription方法的典型用法代码示例。如果您正苦于以下问题:Java RepositoryElementMetaInterface.getDescription方法的具体用法?Java RepositoryElementMetaInterface.getDescription怎么用?Java RepositoryElementMetaInterface.getDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.repository.RepositoryElementMetaInterface
的用法示例。
在下文中一共展示了RepositoryElementMetaInterface.getDescription方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processRow
import org.pentaho.di.repository.RepositoryElementMetaInterface; //导入方法依赖的package包/类
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);
}
if (data.filenr>=data.list.size()) {
setOutputDone();
return false;
}
// Get the next repository object from the list...
//
RepositoryElementMetaInterface repositoryObject = data.list.get(data.filenr++);
Object[] outputRow = buildEmptyRow();
int outputIndex = 0;
String directory = repositoryObject.getRepositoryDirectory().getPath();
String name = repositoryObject.getName();
String path = directory.endsWith("/") ? directory+name : directory+"/"+name;
outputRow[outputIndex++] = path; // the directory and name of the object
outputRow[outputIndex++] = directory; // the directory
outputRow[outputIndex++] = name ; // the name
outputRow[outputIndex++] = repositoryObject.getObjectType().getTypeDescription(); // the object type
outputRow[outputIndex++] = repositoryObject.getObjectId().toString(); // the object ID
outputRow[outputIndex++] = repositoryObject.getModifiedUser(); // modified user
outputRow[outputIndex++] = repositoryObject.getModifiedDate(); // modified date
outputRow[outputIndex++] = repositoryObject.getDescription(); // description
if (meta.isIncludeRowNumber()) {
outputRow[outputIndex++] = Long.valueOf(data.rownr++);
}
// Finally, let's give this row of data to the next steps...
//
putRow(data.outputRowMeta, outputRow);
if (checkFeedback(getLinesInput())) {
if (log.isBasic())
logBasic(BaseMessages.getString(PKG, "GetRepositoryNames.Log.NrLine", "" + getLinesInput()));
}
return true;
}
示例2: processRow
import org.pentaho.di.repository.RepositoryElementMetaInterface; //导入方法依赖的package包/类
@Override
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 );
}
if ( data.filenr >= data.list.size() ) {
setOutputDone();
return false;
}
// Get the next repository object from the list...
//
RepositoryElementMetaInterface repositoryObject = data.list.get( data.filenr++ );
Object[] outputRow = buildEmptyRow();
int outputIndex = 0;
String directory = repositoryObject.getRepositoryDirectory().getPath();
String name = repositoryObject.getName();
String path = directory.endsWith( "/" ) ? directory + name : directory + "/" + name;
outputRow[outputIndex++] = path; // the directory and name of the object
outputRow[outputIndex++] = directory; // the directory
outputRow[outputIndex++] = name; // the name
outputRow[outputIndex++] = repositoryObject.getObjectType().getTypeDescription(); // the object type
outputRow[outputIndex++] = repositoryObject.getObjectId().toString(); // the object ID
outputRow[outputIndex++] = repositoryObject.getModifiedUser(); // modified user
outputRow[outputIndex++] = repositoryObject.getModifiedDate(); // modified date
outputRow[outputIndex++] = repositoryObject.getDescription(); // description
if ( meta.isIncludeRowNumber() ) {
outputRow[outputIndex++] = Long.valueOf( data.rownr++ );
}
// Finally, let's give this row of data to the next steps...
//
putRow( data.outputRowMeta, outputRow );
if ( checkFeedback( getLinesInput() ) ) {
if ( log.isBasic() ) {
logBasic( BaseMessages.getString( PKG, "GetRepositoryNames.Log.NrLine", "" + getLinesInput() ) );
}
}
return true;
}