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


Java ResourceReference类代码示例

本文整理汇总了Java中org.pentaho.di.resource.ResourceReference的典型用法代码示例。如果您正苦于以下问题:Java ResourceReference类的具体用法?Java ResourceReference怎么用?Java ResourceReference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
@Override
public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo) {
   List<ResourceReference> references = new ArrayList<ResourceReference>(5);
   String realFilename = transMeta.environmentSubstitute(fileName);
   String realTransname = transMeta.environmentSubstitute(transName);
   ResourceReference reference = new ResourceReference(stepInfo);
   references.add(reference);
   
   if (!Const.isEmpty(realFilename)) {
     // Add the filename to the references, including a reference to this step meta data.
     //
     reference.getEntries().add( new ResourceEntry(realFilename, ResourceType.ACTIONFILE));
   } else if (!Const.isEmpty(realTransname)) {
     // Add the filename to the references, including a reference to this step meta data.
     //
     reference.getEntries().add( new ResourceEntry(realTransname, ResourceType.ACTIONFILE));
     references.add(reference);
   }
   return references;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:21,代码来源:MappingMeta.java

示例2: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
@Override
public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo) {
   List<ResourceReference> references = new ArrayList<ResourceReference>(5);
   ResourceReference reference = new ResourceReference(stepInfo);
   references.add(reference);

   //
   // Get the file path list from the FileInputList
   //
   String required[] = new String[fileName.length];
   boolean subdirs[] = new boolean[fileName.length]; // boolean arrays are defaulted to false.
   for (int i=0;i<required.length; required[i]="N", i++); //$NON-NLS-1$
   String[] textFiles = FileInputList.createFilePathList(transMeta, fileName, fileMask, required, subdirs);
   
   if ( textFiles!=null ) {
     for (int i=0; i<textFiles.length; i++) {
       reference.getEntries().add( new ResourceEntry(textFiles[i], ResourceType.FILE));
     }
   }
   return references;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:22,代码来源:XMLInputMeta.java

示例3: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
@Override
public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo) {
  List<ResourceReference> references = new ArrayList<ResourceReference>(5);
  String realFilename = transMeta.environmentSubstitute(fileName);
  String realTransname = transMeta.environmentSubstitute(transName);
  ResourceReference reference = new ResourceReference(stepInfo);
  references.add(reference);

  if (!Const.isEmpty(realFilename)) {
    // Add the filename to the references, including a reference to this step
    // meta data.
    //
    reference.getEntries().add(new ResourceEntry(realFilename, ResourceType.ACTIONFILE));
  } else if (!Const.isEmpty(realTransname)) {
    // Add the filename to the references, including a reference to this step
    // meta data.
    //
    reference.getEntries().add(new ResourceEntry(realTransname, ResourceType.ACTIONFILE));
    references.add(reference);
  }
  return references;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:23,代码来源:MappingMeta.java

示例4: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
@Override
public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo) {
   List<ResourceReference> references = new ArrayList<ResourceReference>(5);
   ResourceReference reference = new ResourceReference(stepInfo);
   references.add(reference);

   //
   // Get the file path list from the FileInputList
   //
   String required[] = new String[fileName.length];
   boolean subdirs[] = new boolean[fileName.length]; // boolean arrays are defaulted to false.
   for (int i=0;i<required.length; required[i]="N", i++); //$NON-NLS-1$
   String[] textFiles = FileInputList.createFilePathList(transMeta, fileName, fileMask, new String[] { null }, required, subdirs);
   
   if ( textFiles!=null ) {
     for (int i=0; i<textFiles.length; i++) {
       reference.getEntries().add( new ResourceEntry(textFiles[i], ResourceType.FILE));
     }
   }
   return references;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:22,代码来源:XMLInputMeta.java

示例5: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
@Override
public List<ResourceReference> getResourceDependencies( TransMeta transMeta, StepMeta stepInfo ) {
  List<ResourceReference> references = new ArrayList<ResourceReference>( 5 );
  String realFilename = transMeta.environmentSubstitute( fileName );
  String realTransname = transMeta.environmentSubstitute( transName );
  ResourceReference reference = new ResourceReference( stepInfo );
  references.add( reference );

  if ( !Utils.isEmpty( realFilename ) ) {
    // Add the filename to the references, including a reference to this step
    // meta data.
    //
    reference.getEntries().add( new ResourceEntry( realFilename, ResourceType.ACTIONFILE ) );
  } else if ( !Utils.isEmpty( realTransname ) ) {
    // Add the filename to the references, including a reference to this step
    // meta data.
    //
    reference.getEntries().add( new ResourceEntry( realTransname, ResourceType.ACTIONFILE ) );
  }
  return references;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:22,代码来源:MetaInjectMeta.java

示例6: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
@Override
public List<ResourceReference> getResourceDependencies( TransMeta transMeta, StepMeta stepInfo ) {
  List<ResourceReference> references = new ArrayList<ResourceReference>( 5 );
  String realFilename = transMeta.environmentSubstitute( fileName );
  String realTransname = transMeta.environmentSubstitute( jobName );
  ResourceReference reference = new ResourceReference( stepInfo );
  references.add( reference );

  if ( !Utils.isEmpty( realFilename ) ) {
    // Add the filename to the references, including a reference to this step
    // meta data.
    //
    reference.getEntries().add( new ResourceEntry( realFilename, ResourceType.ACTIONFILE ) );
  } else if ( !Utils.isEmpty( realTransname ) ) {
    // Add the filename to the references, including a reference to this step
    // meta data.
    //
    reference.getEntries().add( new ResourceEntry( realTransname, ResourceType.ACTIONFILE ) );
    references.add( reference );
  }
  return references;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:23,代码来源:JobExecutorMeta.java

示例7: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
@Override
public List<ResourceReference> getResourceDependencies( TransMeta transMeta, StepMeta stepInfo ) {
  List<ResourceReference> references = new ArrayList<ResourceReference>( 5 );
  ResourceReference reference = new ResourceReference( stepInfo );
  references.add( reference );

  //
  // Get the file path list from the FileInputList
  //
  String[] required = new String[fileName.length];
  boolean[] subdirs = new boolean[fileName.length]; // boolean arrays are defaulted to false.
  for ( int i = 0; i < required.length; i++ ) {
    required[i] = "N";
  }
  String[] textFiles =
    FileInputList.createFilePathList( transMeta, fileName, fileMask, new String[] { null }, required, subdirs );

  if ( textFiles != null ) {
    for ( int i = 0; i < textFiles.length; i++ ) {
      reference.getEntries().add( new ResourceEntry( textFiles[i], ResourceType.FILE ) );
    }
  }
  return references;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:25,代码来源:XMLInputMeta.java

示例8: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
@Override
public List<ResourceReference> getResourceDependencies( TransMeta transMeta, StepMeta stepInfo ) {
  List<ResourceReference> references = new ArrayList<ResourceReference>( 5 );
  String realFilename = transMeta.environmentSubstitute( transformationPath );
  ResourceReference reference = new ResourceReference( stepInfo );
  references.add( reference );

  if ( !Utils.isEmpty( realFilename ) ) {
    // Add the filename to the references, including a reference to this step
    // meta data.
    //
    reference.getEntries().add( new ResourceEntry( realFilename, ResourceEntry.ResourceType.ACTIONFILE ) );
  }

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

示例9: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
@Override
public List<ResourceReference> getResourceDependencies( TransMeta transMeta, StepMeta stepInfo ) {
  List<ResourceReference> references = new ArrayList<ResourceReference>( 5 );
  String realFilename = transMeta.environmentSubstitute( fileName );
  String realTransname = transMeta.environmentSubstitute( transName );
  ResourceReference reference = new ResourceReference( stepInfo );
  references.add( reference );

  if ( !Utils.isEmpty( realFilename ) ) {
    // Add the filename to the references, including a reference to this step
    // meta data.
    //
    reference.getEntries().add( new ResourceEntry( realFilename, ResourceType.ACTIONFILE ) );
  } else if ( !Utils.isEmpty( realTransname ) ) {
    // Add the filename to the references, including a reference to this step
    // meta data.
    //
    reference.getEntries().add( new ResourceEntry( realTransname, ResourceType.ACTIONFILE ) );
    references.add( reference );
  }
  return references;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:23,代码来源:TransExecutorMeta.java

示例10: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
@Override
public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo) {
  List<ResourceReference> references = new ArrayList<ResourceReference>(5);
  String realFilename = transMeta.environmentSubstitute(fileName);
  String realTransname = transMeta.environmentSubstitute(jobName);
  ResourceReference reference = new ResourceReference(stepInfo);
  references.add(reference);

  if (!Const.isEmpty(realFilename)) {
    // Add the filename to the references, including a reference to this step
    // meta data.
    //
    reference.getEntries().add(new ResourceEntry(realFilename, ResourceType.ACTIONFILE));
  } else if (!Const.isEmpty(realTransname)) {
    // Add the filename to the references, including a reference to this step
    // meta data.
    //
    reference.getEntries().add(new ResourceEntry(realTransname, ResourceType.ACTIONFILE));
    references.add(reference);
  }
  return references;
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:23,代码来源:JobExecutorMeta.java

示例11: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
@Override
public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo) {
  List<ResourceReference> references = new ArrayList<ResourceReference>(5);

  ResourceReference reference = new ResourceReference(stepInfo);
  references.add(reference);
  if (!Const.isEmpty(filename)) {
    // Add the filename to the references, including a reference to this
    // step meta data.
    //
    reference.getEntries()
        .add(new ResourceEntry(transMeta.environmentSubstitute(filename), ResourceType.FILE));
  }
  return references;
}
 
开发者ID:carbondata,项目名称:carbondata,代码行数:16,代码来源:CsvInputMeta.java

示例12: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
  List<ResourceReference> references = super.getResourceDependencies(jobMeta);
  if (!Const.isEmpty(serverName)) {
    String realServerName = jobMeta.environmentSubstitute(serverName);
    ResourceReference reference = new ResourceReference(this);
    reference.getEntries().add( new ResourceEntry(realServerName, ResourceType.SERVER));
    references.add(reference);
  }
  return references;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:11,代码来源:JobEntrySFTPPUT.java

示例13: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
  List<ResourceReference> references = super.getResourceDependencies(jobMeta);
  if (connection != null) {
    ResourceReference reference = new ResourceReference(this);
    reference.getEntries().add( new ResourceEntry(connection.getHostname(), ResourceType.SERVER));
    reference.getEntries().add( new ResourceEntry(connection.getDatabaseName(), ResourceType.DATABASENAME));
    references.add(reference);
  }
  return references;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:11,代码来源:JobEntryWaitForSQL.java

示例14: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
  List<ResourceReference> references = super.getResourceDependencies(jobMeta);
  if ( (!Const.isEmpty(xslfilename)) && (!Const.isEmpty(xmlfilename)) ) {
    String realXmlFileName = jobMeta.environmentSubstitute(xmlfilename);
    String realXslFileName = jobMeta.environmentSubstitute(xslfilename);
    ResourceReference reference = new ResourceReference(this);
    reference.getEntries().add( new ResourceEntry(realXmlFileName, ResourceType.FILE));
    reference.getEntries().add( new ResourceEntry(realXslFileName, ResourceType.FILE));
    references.add(reference);
  }
  return references;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:13,代码来源:JobEntryXSLT.java

示例15: getResourceDependencies

import org.pentaho.di.resource.ResourceReference; //导入依赖的package包/类
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta)
{
  List<ResourceReference> references = super.getResourceDependencies(jobMeta);
  if (!Const.isEmpty(servername)) 
  {
    String realServername = jobMeta.environmentSubstitute(servername);
    ResourceReference reference = new ResourceReference(this);
    reference.getEntries().add(new ResourceEntry(realServername, ResourceType.SERVER));
    references.add(reference);
  }
  return references;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:13,代码来源:JobEntryGetPOP.java


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