org.pentaho.di.repository.Repository.getUnderlyingRepository()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(290)

本文整理了Java中org.pentaho.di.repository.Repository.getUnderlyingRepository方法的一些代码示例,展示了Repository.getUnderlyingRepository的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.getUnderlyingRepository方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称:Repository
方法名:getUnderlyingRepository

Repository.getUnderlyingRepository介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

@Override
public IUnifiedRepository getUnderlyingRepository() {
 return getDelegate().getUnderlyingRepository();
}
//endregion: T

代码示例来源:origin: pentaho/pentaho-kettle

public void populateFoldersLazy( RepositoryDirectory repositoryDirectory ) {
 RepositoryRequest repositoryRequest = new RepositoryRequest( repositoryDirectory.getPath(), true, 1, null );
 repositoryRequest.setTypes( RepositoryRequest.FILES_TYPE_FILTER.FOLDERS );
 repositoryRequest.setIncludeSystemFolders( false );
 RepositoryFileTree tree = getRepository().getUnderlyingRepository().getTree( repositoryRequest );
 for ( RepositoryFileTree repositoryFileTree : tree.getChildren() ) {
  org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile = repositoryFileTree.getFile();
  RepositoryDirectory repositoryDirectory1 =
   RepositoryDirectory.build( repositoryDirectory.getPath(), repositoryFile, isAdmin() );
  repositoryDirectory.addChild( repositoryDirectory1 );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

public void populateFilesLazy( RepositoryDirectory repositoryDirectory, String filter ) {
 RepositoryRequest repositoryRequest = new RepositoryRequest();
 repositoryRequest.setPath( repositoryDirectory.getPath() );
 repositoryRequest.setDepth( 1 );
 repositoryRequest.setShowHidden( true );
 repositoryRequest.setTypes( RepositoryRequest.FILES_TYPE_FILTER.FILES );
 repositoryRequest.setChildNodeFilter( filter );
 RepositoryFileTree tree = getRepository().getUnderlyingRepository().getTree( repositoryRequest );
 for ( RepositoryFileTree repositoryFileTree : tree.getChildren() ) {
  org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile = repositoryFileTree.getFile();
  RepositoryFile repositoryFile1 = RepositoryFile.build( repositoryDirectory.getPath(), repositoryFile, isAdmin() );
  repositoryDirectory.addChild( repositoryFile1 );
 }
}

相关文章

Repository类方法