本文整理了Java中org.pentaho.di.repository.Repository.getUnderlyingRepository
方法的一些代码示例,展示了Repository.getUnderlyingRepository
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.getUnderlyingRepository
方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称: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 );
}
}
内容来源于网络,如有侵权,请联系作者删除!