本文整理汇总了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();
}
示例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;
}
示例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();
}
示例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);
}
}
示例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;
}
示例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();
}
示例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 );
}
}
示例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);
}
}
示例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 );
}
}