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


Java JobEntrySimpleEval.getSuccessNumberConditionByCode方法代码示例

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


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

示例1: loadXML

import org.pentaho.di.job.entries.simpleeval.JobEntrySimpleEval; //导入方法依赖的package包/类
public void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep) throws KettleXMLException
  {
	try
	{
		super.loadXML(entrynode, databases, slaveServers);
		
		Node fields = XMLHandler.getSubNode(entrynode, "fields");
		
		// How many field arguments?
		int nrFields = XMLHandler.countNodes(fields, "field");	
		source_filefolder = new String[nrFields];
		wildcard = new String[nrFields];
		includeSubFolders = new String[nrFields];
		// Read them all...
		for (int i = 0; i < nrFields; i++)
		{
			Node fnode = XMLHandler.getSubNodeByNr(fields, "field", i);
			
			source_filefolder[i] = XMLHandler.getTagValue(fnode, "source_filefolder");
			wildcard[i] = XMLHandler.getTagValue(fnode, "wildcard");
			includeSubFolders[i] = XMLHandler.getTagValue(fnode, "include_subFolders");
		}
		
		resultFilenamesWildcard          = XMLHandler.getTagValue(entrynode, "result_filenames_wildcard");
		ResultFieldFile          = XMLHandler.getTagValue(entrynode, "result_field_file");
		ResultFieldWildcard          = XMLHandler.getTagValue(entrynode, "result_field_wildcard");
		ResultFieldIncludesubFolders          = XMLHandler.getTagValue(entrynode, "result_field_includesubfolders");
		comparevalue          = XMLHandler.getTagValue(entrynode, "comparevalue");
		minvalue          = XMLHandler.getTagValue(entrynode, "minvalue");
		maxvalue          = XMLHandler.getTagValue(entrynode, "maxvalue");
		successnumbercondition = JobEntrySimpleEval.getSuccessNumberConditionByCode(Const.NVL(XMLHandler.getTagValue(entrynode,	"successnumbercondition"), ""));
		sourceFiles =getSourceFilesByCode(Const.NVL(XMLHandler.getTagValue(entrynode,	"source_files"), ""));
		evaluationType =getEvaluationTypeByCode(Const.NVL(XMLHandler.getTagValue(entrynode,	"evaluation_type"), ""));
		scale =getScaleByCode(Const.NVL(XMLHandler.getTagValue(entrynode,	"scale"), ""));
	}
	catch(KettleXMLException xe)
	{
		throw new KettleXMLException(BaseMessages.getString(PKG, "JobEvalFilesMetrics.Error.Exception.UnableLoadXML"), xe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:41,代码来源:JobEntryEvalFilesMetrics.java

示例2: loadRep

import org.pentaho.di.job.entries.simpleeval.JobEntrySimpleEval; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
  try
  {
		// How many arguments?
		int argnr = rep.countNrJobEntryAttributes(id_jobentry, "source_filefolder");
		source_filefolder = new String[argnr];
		wildcard = new String[argnr];
		includeSubFolders = new String[argnr];
		// Read them all...
		for (int a=0;a<argnr;a++) 
		{
			source_filefolder[a]= rep.getJobEntryAttributeString(id_jobentry, a, "source_filefolder");
			wildcard[a]= rep.getJobEntryAttributeString(id_jobentry, a, "wildcard");
			includeSubFolders[a]= rep.getJobEntryAttributeString(id_jobentry, a, "include_subFolders");
		}
		
		resultFilenamesWildcard  = rep.getJobEntryAttributeString(id_jobentry, "result_filenames_wildcard");
		ResultFieldFile  = rep.getJobEntryAttributeString(id_jobentry, "result_field_file");
		ResultFieldWildcard  = rep.getJobEntryAttributeString(id_jobentry, "result_field_wildcard");
		ResultFieldIncludesubFolders  = rep.getJobEntryAttributeString(id_jobentry, "result_field_includesubfolders");
		comparevalue  = rep.getJobEntryAttributeString(id_jobentry, "comparevalue");
		minvalue  = rep.getJobEntryAttributeString(id_jobentry, "minvalue");
		maxvalue  = rep.getJobEntryAttributeString(id_jobentry, "maxvalue");
		successnumbercondition = JobEntrySimpleEval.getSuccessNumberConditionByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"successnumbercondition"), ""));
		sourceFiles = getSourceFilesByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"source_files"), ""));
		evaluationType = getEvaluationTypeByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"evaluation_type"), ""));
		scale = getScaleByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"scale"), ""));
	}
	catch(KettleException dbe)
	{
		
		throw new KettleException(BaseMessages.getString(PKG, "JobEvalFilesMetrics.Error.Exception.UnableLoadRep")+id_jobentry, dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:36,代码来源:JobEntryEvalFilesMetrics.java

示例3: loadXML

import org.pentaho.di.job.entries.simpleeval.JobEntrySimpleEval; //导入方法依赖的package包/类
public void loadXML( Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers,
  Repository rep, IMetaStore metaStore ) throws KettleXMLException {
  try {
    super.loadXML( entrynode, databases, slaveServers );

    Node fields = XMLHandler.getSubNode( entrynode, "fields" );

    // How many field arguments?
    int nrFields = XMLHandler.countNodes( fields, "field" );
    allocate( nrFields );

    // Read them all...
    for ( int i = 0; i < nrFields; i++ ) {
      Node fnode = XMLHandler.getSubNodeByNr( fields, "field", i );

      sourceFileFolder[i] = XMLHandler.getTagValue( fnode, "source_filefolder" );
      sourceWildcard[i] = XMLHandler.getTagValue( fnode, "wildcard" );
      sourceIncludeSubfolders[i] = XMLHandler.getTagValue( fnode, "include_subFolders" );
    }

    resultFilenamesWildcard = XMLHandler.getTagValue( entrynode, "result_filenames_wildcard" );
    ResultFieldFile = XMLHandler.getTagValue( entrynode, "result_field_file" );
    ResultFieldWildcard = XMLHandler.getTagValue( entrynode, "result_field_wildcard" );
    ResultFieldIncludesubFolders = XMLHandler.getTagValue( entrynode, "result_field_includesubfolders" );
    comparevalue = XMLHandler.getTagValue( entrynode, "comparevalue" );
    minvalue = XMLHandler.getTagValue( entrynode, "minvalue" );
    maxvalue = XMLHandler.getTagValue( entrynode, "maxvalue" );
    successConditionType =
      JobEntrySimpleEval.getSuccessNumberConditionByCode( Const.NVL( XMLHandler.getTagValue(
        entrynode, "successnumbercondition" ), "" ) );
    sourceFiles = getSourceFilesByCode( Const.NVL( XMLHandler.getTagValue( entrynode, "source_files" ), "" ) );
    evaluationType =
      getEvaluationTypeByCode( Const.NVL( XMLHandler.getTagValue( entrynode, "evaluation_type" ), "" ) );
    scale = getScaleByCode( Const.NVL( XMLHandler.getTagValue( entrynode, "scale" ), "" ) );
  } catch ( KettleXMLException xe ) {
    throw new KettleXMLException( BaseMessages.getString(
      PKG, "JobEvalFilesMetrics.Error.Exception.UnableLoadXML" ), xe );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:40,代码来源:JobEntryEvalFilesMetrics.java

示例4: loadRep

import org.pentaho.di.job.entries.simpleeval.JobEntrySimpleEval; //导入方法依赖的package包/类
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases,
  List<SlaveServer> slaveServers ) throws KettleException {
  try {
    // How many arguments?
    int argnr = rep.countNrJobEntryAttributes( id_jobentry, "source_filefolder" );
    allocate( argnr );

    // Read them all...
    for ( int a = 0; a < argnr; a++ ) {
      sourceFileFolder[a] = rep.getJobEntryAttributeString( id_jobentry, a, "source_filefolder" );
      sourceWildcard[a] = rep.getJobEntryAttributeString( id_jobentry, a, "wildcard" );
      sourceIncludeSubfolders[a] = rep.getJobEntryAttributeString( id_jobentry, a, "include_subFolders" );
    }

    resultFilenamesWildcard = rep.getJobEntryAttributeString( id_jobentry, "result_filenames_wildcard" );
    ResultFieldFile = rep.getJobEntryAttributeString( id_jobentry, "result_field_file" );
    ResultFieldWildcard = rep.getJobEntryAttributeString( id_jobentry, "result_field_wild" );
    ResultFieldIncludesubFolders =
      rep.getJobEntryAttributeString( id_jobentry, "result_field_includesubfolders" );
    comparevalue = rep.getJobEntryAttributeString( id_jobentry, "comparevalue" );
    minvalue = rep.getJobEntryAttributeString( id_jobentry, "minvalue" );
    maxvalue = rep.getJobEntryAttributeString( id_jobentry, "maxvalue" );
    successConditionType =
      JobEntrySimpleEval.getSuccessNumberConditionByCode( Const.NVL( rep.getJobEntryAttributeString(
        id_jobentry, "successnumbercondition" ), "" ) );
    sourceFiles =
      getSourceFilesByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "source_files" ), "" ) );
    evaluationType =
      getEvaluationTypeByCode( Const
        .NVL( rep.getJobEntryAttributeString( id_jobentry, "evaluation_type" ), "" ) );
    scale = getScaleByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "scale" ), "" ) );
  } catch ( KettleException dbe ) {

    throw new KettleException( BaseMessages.getString( PKG, "JobEvalFilesMetrics.Error.Exception.UnableLoadRep" )
      + id_jobentry, dbe );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:38,代码来源:JobEntryEvalFilesMetrics.java


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