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

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

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

Repository.deletePartitionSchema介绍

暂无

代码示例

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

@Override
public void deletePartitionSchema( ObjectId objectId ) throws KettleException {
 getDelegate().deletePartitionSchema( objectId );
}

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

public void delPartitionSchema( String partitionSchemaName ) {
 try {
  ObjectId id = rep.getPartitionSchemaID( partitionSchemaName );
  if ( id != null ) {
   rep.deletePartitionSchema( id );
  }
  refreshTree();
 } catch ( KettleException e ) {
  new ErrorDialog( shell,
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.PartitionSchema.Delete.UnexpectedError.Title" ),
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.PartitionSchema.Delete.UnexpectedError.Message" ), e );
 }
}

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

public void delPartitionSchema( TransMeta transMeta, PartitionSchema partitionSchema ) {
 try {
  int idx = transMeta.getPartitionSchemas().indexOf( partitionSchema );
  transMeta.getPartitionSchemas().remove( idx );
  if ( spoon.rep != null && partitionSchema.getObjectId() != null ) {
   // remove the partition schema from the repository too...
   spoon.rep.deletePartitionSchema( partitionSchema.getObjectId() );
   if ( sharedObjectSyncUtil != null ) {
    sharedObjectSyncUtil.deletePartitionSchema( partitionSchema );
   }
  }
  refreshTree();
 } catch ( KettleException e ) {
  new ErrorDialog(
   spoon.getShell(), BaseMessages.getString( PKG, "Spoon.Dialog.ErrorDeletingClusterSchema.Title" ), BaseMessages
    .getString( PKG, "Spoon.Dialog.ErrorDeletingClusterSchema.Message" ), e );
 }
}

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

mb.open();
} else {
 repository.deletePartitionSchema( partitionId );
 if ( mainController != null && mainController.getSharedObjectSyncUtil() != null ) {
  mainController.getSharedObjectSyncUtil().deletePartitionSchema( partitionSchema );

相关文章

Repository类方法