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


Java StepPartitioningMeta.getPartitioner方法代码示例

本文整理汇总了Java中org.pentaho.di.trans.step.StepPartitioningMeta.getPartitioner方法的典型用法代码示例。如果您正苦于以下问题:Java StepPartitioningMeta.getPartitioner方法的具体用法?Java StepPartitioningMeta.getPartitioner怎么用?Java StepPartitioningMeta.getPartitioner使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.trans.step.StepPartitioningMeta的用法示例。


在下文中一共展示了StepPartitioningMeta.getPartitioner方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ModPartitionerDialog

import org.pentaho.di.trans.step.StepPartitioningMeta; //导入方法依赖的package包/类
public ModPartitionerDialog(Shell parent, Object in, StepPartitioningMeta partitioningMeta, TransMeta transMeta)
{
	super(parent, (BaseStepMeta)in, transMeta, partitioningMeta.getPartitioner().getDescription() );
	this.partitioningMeta = partitioningMeta;
	partitioner = (ModPartitioner) partitioningMeta.getPartitioner();
	stepMeta=(StepMetaInterface)in;
	fieldName = partitioner.getFieldName();
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:9,代码来源:ModPartitionerDialog.java

示例2: loadStepPartitioningMeta

import org.pentaho.di.trans.step.StepPartitioningMeta; //导入方法依赖的package包/类
public StepPartitioningMeta loadStepPartitioningMeta(ObjectId id_step) throws KettleException
{
	StepPartitioningMeta stepPartitioningMeta = new StepPartitioningMeta();
	
	stepPartitioningMeta.setPartitionSchemaName( repository.getStepAttributeString(id_step, "PARTITIONING_SCHEMA") );
    String methodCode   = repository.getStepAttributeString(id_step, "PARTITIONING_METHOD");
    stepPartitioningMeta.setMethod( StepPartitioningMeta.getMethod(methodCode) );
    if( stepPartitioningMeta.getPartitioner() != null ) {
    	stepPartitioningMeta.getPartitioner().loadRep( repository, id_step);
    }
    stepPartitioningMeta.hasChanged(true);
    
    return stepPartitioningMeta;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:15,代码来源:KettleDatabaseRepositoryStepDelegate.java

示例3: ModPartitionerDialog

import org.pentaho.di.trans.step.StepPartitioningMeta; //导入方法依赖的package包/类
public ModPartitionerDialog(Shell parent, StepMeta stepMeta, StepPartitioningMeta partitioningMeta, TransMeta transMeta)
{
	super(parent, (BaseStepMeta)stepMeta.getStepMetaInterface(), transMeta, partitioningMeta.getPartitioner().getDescription() );
	this.stepMeta = stepMeta;
	this.partitioningMeta = partitioningMeta;
	partitioner = (ModPartitioner) partitioningMeta.getPartitioner();
	fieldName = partitioner.getFieldName();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:9,代码来源:ModPartitionerDialog.java

示例4: getPartitionerDialog

import org.pentaho.di.trans.step.StepPartitioningMeta; //导入方法依赖的package包/类
public StepDialogInterface getPartitionerDialog(StepMeta stepMeta, StepPartitioningMeta partitioningMeta, TransMeta transMeta) throws KettleException
{
	Partitioner partitioner = partitioningMeta.getPartitioner();
	String dialogClassName = partitioner.getDialogClassName();

	Class<?> dialogClass;
	Class<?>[] paramClasses = new Class[] { Shell.class, StepMeta.class, StepPartitioningMeta.class, TransMeta.class };
	Object[] paramArgs = new Object[] { spoon.getShell(), stepMeta, partitioningMeta, transMeta };
	Constructor<?> dialogConstructor;
	try
	{
		dialogClass = partitioner.getClass().getClassLoader().loadClass(dialogClassName);
		dialogConstructor = dialogClass.getConstructor(paramClasses);
		return (StepDialogInterface) dialogConstructor.newInstance(paramArgs);
	} catch (Exception e)
	{
		// try the old way for compatibility 
		Method method = null;
			try {
				Class<?> sig[] = new Class[] {Shell.class, StepMetaInterface.class, TransMeta.class};
				method = stepMeta.getClass().getDeclaredMethod( "getDialog", sig );
				if( method != null ) {
					return (StepDialogInterface) method.invoke( stepMeta, new Object[] { spoon.getShell(), stepMeta, transMeta } );
				}
			} catch (Throwable t) {
			}

		throw new KettleException(e);
	}

}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:32,代码来源:SpoonStepsDelegate.java

示例5: loadStepPartitioningMeta

import org.pentaho.di.trans.step.StepPartitioningMeta; //导入方法依赖的package包/类
public StepPartitioningMeta loadStepPartitioningMeta( ObjectId id_step ) throws KettleException {
  StepPartitioningMeta stepPartitioningMeta = new StepPartitioningMeta();

  stepPartitioningMeta.setPartitionSchemaName( repository
    .getStepAttributeString( id_step, "PARTITIONING_SCHEMA" ) );
  String methodCode = repository.getStepAttributeString( id_step, "PARTITIONING_METHOD" );
  stepPartitioningMeta.setMethod( StepPartitioningMeta.getMethod( methodCode ) );
  if ( stepPartitioningMeta.getPartitioner() != null ) {
    stepPartitioningMeta.getPartitioner().loadRep( repository, id_step );
  }
  stepPartitioningMeta.hasChanged( true );

  return stepPartitioningMeta;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:15,代码来源:KettleDatabaseRepositoryStepDelegate.java

示例6: ModPartitionerDialog

import org.pentaho.di.trans.step.StepPartitioningMeta; //导入方法依赖的package包/类
public ModPartitionerDialog( Shell parent, StepMeta stepMeta, StepPartitioningMeta partitioningMeta,
                             TransMeta transMeta ) {
  super( parent, (BaseStepMeta) stepMeta.getStepMetaInterface(), transMeta, partitioningMeta
    .getPartitioner().getDescription() );
  this.stepMeta = stepMeta;
  this.partitioningMeta = partitioningMeta;
  partitioner = (ModPartitioner) partitioningMeta.getPartitioner();
  fieldName = partitioner.getFieldName();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:10,代码来源:ModPartitionerDialog.java

示例7: getPartitionerDialog

import org.pentaho.di.trans.step.StepPartitioningMeta; //导入方法依赖的package包/类
public StepDialogInterface getPartitionerDialog( StepMeta stepMeta, StepPartitioningMeta partitioningMeta,
  TransMeta transMeta ) throws KettleException {
  Partitioner partitioner = partitioningMeta.getPartitioner();
  String dialogClassName = partitioner.getDialogClassName();

  Class<?> dialogClass;
  Class<?>[] paramClasses =
    new Class<?>[] { Shell.class, StepMeta.class, StepPartitioningMeta.class, TransMeta.class };
  Object[] paramArgs = new Object[] { spoon.getShell(), stepMeta, partitioningMeta, transMeta };
  Constructor<?> dialogConstructor;
  try {
    dialogClass = partitioner.getClass().getClassLoader().loadClass( dialogClassName );
    dialogConstructor = dialogClass.getConstructor( paramClasses );
    return (StepDialogInterface) dialogConstructor.newInstance( paramArgs );
  } catch ( Exception e ) {
    // try the old way for compatibility
    Method method;
    try {
      Class<?>[] sig = new Class<?>[] { Shell.class, StepMetaInterface.class, TransMeta.class };
      method = stepMeta.getClass().getDeclaredMethod( "getDialog", sig );
      if ( method != null ) {
        return (StepDialogInterface) method.invoke( stepMeta, new Object[] {
          spoon.getShell(), stepMeta, transMeta } );
      }
    } catch ( Throwable ignored ) { }

    throw new KettleException( e );
  }

}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:31,代码来源:SpoonStepsDelegate.java

示例8: saveStepPartitioningMeta

import org.pentaho.di.trans.step.StepPartitioningMeta; //导入方法依赖的package包/类
/**
 * Saves partitioning properties in the repository for the given step.
 * 
 * @param meta the partitioning metadata to store.
 * @param id_transformation the ID of the transformation
 * @param id_step the ID of the step
 * @throws KettleDatabaseException In case anything goes wrong
 * 
 */
public void saveStepPartitioningMeta(StepPartitioningMeta meta, ObjectId id_transformation, ObjectId id_step) throws KettleException
{
    repository.saveStepAttribute(id_transformation, id_step, "PARTITIONING_SCHEMA",    meta.getPartitionSchema()!=null?meta.getPartitionSchema().getName():""); // selected schema
    repository.saveStepAttribute(id_transformation, id_step, "PARTITIONING_METHOD",    meta.getMethodCode());          // method of partitioning
    if( meta.getPartitioner() != null ) {
    	meta.getPartitioner().saveRep( repository, id_transformation, id_step);
    }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:18,代码来源:KettleDatabaseRepositoryStepDelegate.java

示例9: saveStepPartitioningMeta

import org.pentaho.di.trans.step.StepPartitioningMeta; //导入方法依赖的package包/类
/**
 * Saves partitioning properties in the repository for the given step.
 *
 * @param meta
 *          the partitioning metadata to store.
 * @param id_transformation
 *          the ID of the transformation
 * @param id_step
 *          the ID of the step
 * @throws KettleDatabaseException
 *           In case anything goes wrong
 *
 */
public void saveStepPartitioningMeta( StepPartitioningMeta meta, ObjectId id_transformation, ObjectId id_step ) throws KettleException {
  repository.saveStepAttribute(
    id_transformation, id_step, "PARTITIONING_SCHEMA", meta.getPartitionSchema() != null ? meta
      .getPartitionSchema().getName() : "" ); // selected schema
  repository.saveStepAttribute( id_transformation, id_step, "PARTITIONING_METHOD", meta.getMethodCode() );
  if ( meta.getPartitioner() != null ) {
    meta.getPartitioner().saveRep( repository, id_transformation, id_step );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:23,代码来源:KettleDatabaseRepositoryStepDelegate.java


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