• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java StepPluginType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: doGet

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
@Override
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    resp.setContentType("application/json");
    final PluginRegistry registry = PluginRegistry.getInstance();
    final List<PluginInterface> basesteps = registry.getPlugins(StepPluginType.class);
    final List<String> basecat = registry.getCategories(StepPluginType.class);

    List<Map<String, Object>> categoryList = new ArrayList<Map<String, Object>>();
    Map<String, Map<String, Object>> categoryMap = new HashMap<String, Map<String, Object>>();
    for (String category : basecat) {
        getCategoryMap(category, categoryList, categoryMap);
    }
    for (PluginInterface pluginInterface : basesteps) {
        Map<String, Object> thisCategory = getCategoryMap(pluginInterface.getCategory(), categoryList, categoryMap);
        List<Map<String, String>> stepList = (List<Map<String, String>>) thisCategory.get("steps");
        Map<String, String> step = new HashMap<String, String>();
        step.put("name", pluginInterface.getIds()[0]);
        step.put("label", pluginInterface.getName());
        step.put("image", KThinStepImageServlet.CONTEXT_PATH.substring(1) + "/?name=" + pluginInterface.getIds()[0]);
        stepList.add(step);
    }
    resp.getWriter().print(JSON.toString(categoryList));
    resp.getWriter().flush();
}
 
开发者ID:brosander,项目名称:kettle-plugins,代码行数:25,代码来源:KThinStepListServlet.java


示例2: doGet

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
@Override
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    resp.setContentType("image/png");
    String id = req.getParameter("name");
    PluginInterface pluginInterface = images.get(id);
    if (pluginInterface == null) {
        for (PluginInterface pluginInterface1 : registry.getPlugins(StepPluginType.class)) {
            if (pluginInterface1.getIds()[0].equalsIgnoreCase(id)) {
                pluginInterface = pluginInterface1;
            }
        }
    }
    OutputStream outputStream = resp.getOutputStream();
    try {
        IOUtils.copy(getImage(pluginInterface), outputStream);
    } catch (KettlePluginException e) {
        throw new ServletException(e);
    }
    outputStream.flush();
}
 
开发者ID:brosander,项目名称:kettle-plugins,代码行数:21,代码来源:KThinStepImageServlet.java


示例3: generatePreviewTransformation

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
public static final TransMeta generatePreviewTransformation(VariableSpace parent, StepMetaInterface oneMeta, String oneStepname)
{
    PluginRegistry registry = PluginRegistry.getInstance();

    TransMeta previewMeta = new TransMeta(parent);
    // The following operation resets the internal variables!
    //
    previewMeta.setName(parent==null ? "Preview transformation" : parent.toString());
    
    // At it to the first step.
    StepMeta one = new StepMeta(registry.getPluginId(StepPluginType.class, oneMeta), oneStepname, oneMeta);
    one.setLocation(50,50);
    one.setDraw(true);
    previewMeta.addStep(one);
    
    DummyTransMeta twoMeta = new DummyTransMeta();
    StepMeta two = new StepMeta(registry.getPluginId(StepPluginType.class, twoMeta), "dummy", twoMeta); //$NON-NLS-1$
    two.setLocation(250,50);
    two.setDraw(true);
    previewMeta.addStep(two);
    
    TransHopMeta hop = new TransHopMeta(one, two);
    previewMeta.addTransHop(hop);
    
    return previewMeta;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:27,代码来源:TransPreviewFactory.java


示例4: StepMeta

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
/**
    * @param stepname The name of the new step
    * @param stepMetaInterface The step metadata interface to use (TextFileInputMeta, etc)
    */
public StepMeta(String stepname, StepMetaInterface stepMetaInterface)
{
       if (stepMetaInterface!=null)
       {
           this.stepid = PluginRegistry.getInstance().getPluginId(StepPluginType.class, stepMetaInterface);
       }
	this.stepname          = stepname;
	setStepMetaInterface( stepMetaInterface );
       
	selected    = false;
	distributes  = true;
	copies      = 1;
	location    = new Point(0,0);
	drawstep    = false;
	description = null;
       stepPartitioningMeta = new StepPartitioningMeta();
       // targetStepPartitioningMeta = new StepPartitioningMeta();
       
       clusterSchema = null; // non selected by default.

       remoteInputSteps = new ArrayList<RemoteStep>();
       remoteOutputSteps = new ArrayList<RemoteStep>();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:28,代码来源:StepMeta.java


示例5: loadStepImages

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
private Map<String, BufferedImage> loadStepImages() throws KettleException {
	Map<String, BufferedImage> map = new HashMap<String, BufferedImage>();
	
	for (PluginInterface plugin: PluginRegistry.getInstance().getPlugins(StepPluginType.class)) {
	  try {
 		  BufferedImage image = getImageIcon(plugin);
 			for (String id : plugin.getIds()) {
 				map.put(id, image);
 			}
	  } catch(Exception e) {
	    log.logError("Unable to load step icon image for plugin: "+plugin.getName()+" (id="+plugin.getIds()[0], e);
	    try { 
	      getImageIcon(plugin); 
	    } catch(Exception ex) {
	      // 
	    }
	  }
	}
	
	return map;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:22,代码来源:SwingGUIResource.java


示例6: createTransformationMeta

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
/**
 * Creates a transformation with a row generator step and 
 * hopped to a GPLoadStep with the passed name.
 * 
 * @param gpLoadStepname The name of the GPLoad step.
 * 
 * @throws KettleException
 */
public TransMeta createTransformationMeta(String gpLoadStepname)
      throws Exception {

   // Create a new transformation...
   TransMeta transMeta = new TransMeta();
   transMeta.setName("row generatortest");

   // Add a database connection to the trans meta
   transMeta.addDatabase(new DatabaseMeta(GREENPLUM_DATABASE_CONNECTION));

   // get a reference to the plugin registry
   PluginRegistry registry = PluginRegistry.getInstance();
   if (registry == null) {
      throw new Exception("Plugin registry is null.  Make sure that the Kettle environment was initialized.");
   }

   // create the GPLoad step
   GPLoadMeta gpLoadMeta = new GPLoadMeta();
   String dummyPid = registry.getPluginId(StepPluginType.class, gpLoadMeta);
   StepMeta gpLoadStepMeta = new StepMeta(dummyPid, gpLoadStepname, (StepMetaInterface) gpLoadMeta);
   transMeta.addStep(gpLoadStepMeta);

   return transMeta;
}
 
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:33,代码来源:GPLoadTests.java


示例7: setUp

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
@Before
public void setUp() {
  TransMeta transMeta = new TransMeta();
  transMeta.setName( "delete1" );

  Map<String, String> vars = new HashMap<String, String>();
  vars.put( "max.sz", "10" );
  transMeta.injectVariables( vars );

  dmi = new DeleteMeta();
  dd = new DeleteData();

  PluginRegistry plugReg = PluginRegistry.getInstance();
  String deletePid = plugReg.getPluginId( StepPluginType.class, dmi );

  stepMeta = new StepMeta( deletePid, "delete", dmi );
  Trans trans = new Trans( transMeta );
  transMeta.addStep( stepMeta );
  del = new Delete( stepMeta, dd, 1, transMeta, trans );
  del.copyVariablesFrom( transMeta );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:22,代码来源:DeleteMetaTest.java


示例8: createRowGeneratorStep

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
/**
 * Creates a row generator step for this class..
 * 
 * @param name
 * @param registry
 * @return
 */
private StepMeta createRowGeneratorStep(String name, PluginRegistry registry) {
      
      // Default the name if it is empty
      String testFileOutputName = (Const.isEmpty(name)?"generate rows":name);
      
      //  create the RowGenerator and Step Meta
      RowGeneratorMeta rowGeneratorMeta = new RowGeneratorMeta();
      String rowGeneratorPid = registry.getPluginId(StepPluginType.class,  rowGeneratorMeta);
      StepMeta generateRowsStep = new StepMeta(rowGeneratorPid, testFileOutputName,  rowGeneratorMeta);
 
      //  Set the field names, types and values
      rowGeneratorMeta.setFieldName(new String[]{"Id", "State", "City"});
      rowGeneratorMeta.setFieldType(new String[]{"Integer", "String", "String"});
      rowGeneratorMeta.setValue(new String[]{"1", "Florida", "Orlando"});
      rowGeneratorMeta.setFieldLength(new int[]{-1, -1, -1});
      rowGeneratorMeta.setFieldPrecision(new int[]{-1, -1, -1});
      rowGeneratorMeta.setGroup(new String[]{"", "", ""});
      rowGeneratorMeta.setDecimal(new String[]{"", "", ""});
      rowGeneratorMeta.setFieldFormat(new String[]{"", "", ""});
      rowGeneratorMeta.setRowLimit("10");
      
      //  return the step meta
      return generateRowsStep;
  }
 
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:32,代码来源:JsonOutputTest.java


示例9: StepMeta

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
/**
 * @param stepname The name of the new step
 * @param stepMetaInterface The step metadata interface to use (TextFileInputMeta, etc)
 */
public StepMeta(String stepname, StepMetaInterface stepMetaInterface) {
  if (stepMetaInterface != null) {
    this.stepid = PluginRegistry.getInstance().getPluginId(StepPluginType.class, stepMetaInterface);
  }
  this.stepname = stepname;
  setStepMetaInterface(stepMetaInterface);

  selected = false;
  distributes = true;
  copiesString = "1";
  location = new Point(0, 0);
  drawstep = false;
  description = null;
  stepPartitioningMeta = new StepPartitioningMeta();
  // targetStepPartitioningMeta = new StepPartitioningMeta();

  clusterSchema = null; // non selected by default.

  remoteInputSteps = new ArrayList<RemoteStep>();
  remoteOutputSteps = new ArrayList<RemoteStep>();
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:26,代码来源:StepMeta.java


示例10: setUp

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
@Before
public void setUp() {
  TransMeta transMeta = new TransMeta();
  transMeta.setName( "loader" );

  lm = new PGBulkLoaderMeta();
  ld = new PGBulkLoaderData();

  PluginRegistry plugReg = PluginRegistry.getInstance();

  String loaderPid = plugReg.getPluginId( StepPluginType.class, lm );

  stepMeta = new StepMeta( loaderPid, "loader", lm );
  Trans trans = new Trans( transMeta );
  transMeta.addStep( stepMeta );

  loader = new PGBulkLoader( stepMeta, ld, 1, transMeta, trans );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:19,代码来源:PGBulkLoaderMetaTest.java


示例11: createRowGeneratorStep

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
/**
 * Creates a row generator step for this class..
 * 
 * @param name
 * @param registry
 * @return
 */
private StepMeta createRowGeneratorStep(String name, PluginRegistry registry) {
    
    // Default the name if it is empty
    String testFileOutputName = (Const.isEmpty(name)?"generate rows":name);
    
    //  create the RowGenerator and Step Meta
    RowGeneratorMeta rowGeneratorMeta = new RowGeneratorMeta();
    String rowGeneratorPid = registry.getPluginId(StepPluginType.class,  rowGeneratorMeta);
    StepMeta generateRowsStep = new StepMeta(rowGeneratorPid, testFileOutputName,  rowGeneratorMeta);
   
    //  Set the field names, types and values
    rowGeneratorMeta.setFieldName(new String[]{"Id", "State", "City"});
    rowGeneratorMeta.setFieldType(new String[]{"Integer", "String", "String"});
    rowGeneratorMeta.setValue(new String[]{"1", "Orlando", "Florida"});
    rowGeneratorMeta.setFieldLength(new int[]{-1, -1, -1});
    rowGeneratorMeta.setFieldPrecision(new int[]{-1, -1, -1});
    rowGeneratorMeta.setGroup(new String[]{"", "", ""});
    rowGeneratorMeta.setDecimal(new String[]{"", "", ""});
    rowGeneratorMeta.setCurrency(new String[]{"", "", ""});
    rowGeneratorMeta.setFieldFormat(new String[]{"", "", ""});
    rowGeneratorMeta.setRowLimit("10");
    
    //  return the step meta
    return generateRowsStep;
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:33,代码来源:TextFileOutputTests.java


示例12: setUp

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
@Before
public void setUp() throws KettlePluginException, SQLException {
  PluginRegistry.addPluginType( ValueMetaPluginType.getInstance() );
  PluginRegistry.init( true );

  loaderData = new VerticaBulkLoaderData();
  loaderMeta = spy( new VerticaBulkLoaderMeta() );

  TransMeta transMeta = new TransMeta();
  transMeta.setName( "loader" );

  PluginRegistry pluginRegistry = PluginRegistry.getInstance();

  String loaderPid = pluginRegistry.getPluginId( StepPluginType.class, loaderMeta );
  StepMeta stepMeta = new StepMeta( loaderPid, "loader", loaderMeta );
  Trans trans = new Trans( transMeta );
  transMeta.addStep( stepMeta );
  trans.setRunning( true );

  loaderMeta.setDatabaseMeta( mock( DatabaseMeta.class ) );

  loader = spy( new VerticaBulkLoader( stepMeta, loaderData, 1, transMeta, trans ) );
  loader.init( loaderMeta, loaderData );

  doReturn( mock( VerticaCopyStream.class ) ).when( loader ).createVerticaCopyStream( anyString() );
}
 
开发者ID:pentaho,项目名称:pentaho-vertica-bulkloader,代码行数:27,代码来源:VerticaBulkLoaderTest.java


示例13: createTransformationMeta

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
/**
 * Creates a transformation with a row generator step and hopped to a GPLoadStep with the passed name.
 * 
 * @param gpLoadStepname
 *          The name of the GPLoad step.
 * 
 * @throws KettleException
 */
public TransMeta createTransformationMeta( String gpLoadStepname ) throws Exception {

  // Create a new transformation...
  TransMeta transMeta = new TransMeta();
  transMeta.setName( "row generatortest" );

  // Add a database connection to the trans meta
  transMeta.addDatabase( new DatabaseMeta( GREENPLUM_DATABASE_CONNECTION ) );

  // get a reference to the plugin registry
  PluginRegistry registry = PluginRegistry.getInstance();
  if ( registry == null ) {
    throw new Exception( "Plugin registry is null.  Make sure that the Kettle environment was initialized." );
  }

  // create the GPLoad step
  GPLoadMeta gpLoadMeta = new GPLoadMeta();
  String dummyPid = registry.getPluginId( StepPluginType.class, gpLoadMeta );
  StepMeta gpLoadStepMeta = new StepMeta( dummyPid, gpLoadStepname, gpLoadMeta );
  transMeta.addStep( gpLoadStepMeta );

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


示例14: createRowGeneratorStep

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
/**
 * Creates a row generator step for this class..
 *
 * @param name
 * @param registry
 * @return
 */
private StepMeta createRowGeneratorStep( String name, PluginRegistry registry ) {

  // Default the name if it is empty
  String testFileOutputName = ( Utils.isEmpty( name ) ? "generate rows" : name );

  // create the RowGenerator and Step Meta
  RowGeneratorMeta rowGeneratorMeta = new RowGeneratorMeta();
  String rowGeneratorPid = registry.getPluginId( StepPluginType.class, rowGeneratorMeta );
  StepMeta generateRowsStep = new StepMeta( rowGeneratorPid, testFileOutputName, rowGeneratorMeta );

  // Set the field names, types and values
  rowGeneratorMeta.setFieldName( new String[] { "Id", "State", "City" } );
  rowGeneratorMeta.setFieldType( new String[] { "Integer", "String", "String" } );
  rowGeneratorMeta.setValue( new String[] { "1", "Orlando", "Florida" } );
  rowGeneratorMeta.setFieldLength( new int[] { -1, -1, -1 } );
  rowGeneratorMeta.setFieldPrecision( new int[] { -1, -1, -1 } );
  rowGeneratorMeta.setGroup( new String[] { "", "", "" } );
  rowGeneratorMeta.setDecimal( new String[] { "", "", "" } );
  rowGeneratorMeta.setCurrency( new String[] { "", "", "" } );
  rowGeneratorMeta.setFieldFormat( new String[] { "", "", "" } );
  rowGeneratorMeta.setRowLimit( "10" );

  // return the step meta
  return generateRowsStep;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:33,代码来源:TextFileOutputIT.java


示例15: createRestInputStep

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
public StepMeta createRestInputStep( TransMeta transMeta, PluginRegistry registry ) throws Exception {
  String inputName = "rest input step";
  RestMeta meta = new RestMeta();

  String inputPid = registry.getPluginId( StepPluginType.class, meta );
  StepMeta inputStep = new StepMeta( inputPid, inputName, meta );
  transMeta.addStep( inputStep );

  meta.setDefault();
  meta.setUrl( tester.createSocketConnector( true ) + "/context/simple/join" );
  meta.setMethod( "POST" );
  meta.setMatrixParameterField( new String[] { "pageSize" } );
  meta.setMatrixParameterName( new String[] { "limit" } );

  meta.setParameterField( new String[] { "name" } );
  meta.setParameterName( new String[] { "name" } );

  meta.setApplicationType( RestMeta.APPLICATION_TYPE_TEXT_PLAIN );
  meta.setFieldName( "result" );

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


示例16: openHelpDialog

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
public static ShowHelpDialog openHelpDialog( Shell shell, PluginInterface plugin ) {
  if ( shell == null || plugin == null ) {
    return null;
  }
  if ( isPluginDocumented( plugin ) ) {
    return openHelpDialog( shell, getHelpDialogTitle( plugin ), plugin.getDocumentationUrl(),
        plugin.getName()  );
  } else {
    MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
    String msgKey = "";
    // TODO currently support only Step and JobEntry - extend if required.
    if ( plugin.getPluginType().equals( StepPluginType.class ) ) {
      msgKey = "System.ShowHelpDialog.Step.HelpIsNotAvailable";
    } else {
      msgKey = "System.ShowHelpDialog.JobEntry.HelpIsNotAvailable";
    }
    mb.setMessage( BaseMessages.getString( PKG, msgKey, plugin.getName() ) );
    mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
    mb.open();
  }
  return null;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:23,代码来源:HelpUtils.java


示例17: createSortRowsStep

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
/**
 * Create and return a SortRows step.
 *
 * @param name
 * @param sortFields     [] Fields to sort by
 * @param ascending      [] Boolean indicating whether the corresponding field is to be sorted in ascending or
 *                       descending order.
 * @param caseSensitive  [] Boolean indicating whether the corresponding field is to have case as a factor in the
 *                       sort.
 * @param directory      The directory in the file system where the sort is to take place if it can't fit into
 *                       memory?
 * @param sortSize       ???
 * @param pluginRegistry The environment's Kettle plugin registry.
 * @return
 */
public static synchronized StepMeta createSortRowsStep( String name, String[] sortFields, boolean[] ascending,
                                                        boolean[] caseSensitive, String directory, int sortSize,
                                                        PluginRegistry pluginRegistry ) {

  SortRowsMeta sortRowsMeta = new SortRowsMeta();
  sortRowsMeta.setSortSize( Integer.toString( sortSize / 10 ) );
  sortRowsMeta.setFieldName( sortFields );
  sortRowsMeta.setAscending( ascending );
  sortRowsMeta.setCaseSensitive( caseSensitive );
  sortRowsMeta.setDirectory( directory );

  String sortRowsStepPid = pluginRegistry.getPluginId( StepPluginType.class, sortRowsMeta );
  StepMeta sortRowsStep = new StepMeta( sortRowsStepPid, name, sortRowsMeta );

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


示例18: generatePreviewTransformation

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
public static final TransMeta generatePreviewTransformation( VariableSpace parent, StepMetaInterface oneMeta,
  String oneStepname ) {
  PluginRegistry registry = PluginRegistry.getInstance();

  TransMeta previewMeta = new TransMeta( parent );
  // The following operation resets the internal variables!
  //
  previewMeta.setName( parent == null ? "Preview transformation" : parent.toString() );

  // At it to the first step.
  StepMeta one = new StepMeta( registry.getPluginId( StepPluginType.class, oneMeta ), oneStepname, oneMeta );
  one.setLocation( 50, 50 );
  one.setDraw( true );
  previewMeta.addStep( one );

  DummyTransMeta twoMeta = new DummyTransMeta();
  StepMeta two = new StepMeta( registry.getPluginId( StepPluginType.class, twoMeta ), "dummy", twoMeta );
  two.setLocation( 250, 50 );
  two.setDraw( true );
  previewMeta.addStep( two );

  TransHopMeta hop = new TransHopMeta( one, two );
  previewMeta.addTransHop( hop );

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


示例19: StepMeta

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
/**
 * @param stepname
 *          The name of the new step
 * @param stepMetaInterface
 *          The step metadata interface to use (TextFileInputMeta, etc)
 */
public StepMeta( String stepname, StepMetaInterface stepMetaInterface ) {
  if ( stepMetaInterface != null ) {
    this.stepid = PluginRegistry.getInstance().getPluginId( StepPluginType.class, stepMetaInterface );
  }
  this.name = stepname;
  setStepMetaInterface( stepMetaInterface );

  selected = false;
  distributes = true;
  copiesString = "1";
  location = new Point( 0, 0 );
  drawstep = false;
  description = null;
  stepPartitioningMeta = new StepPartitioningMeta();
  // targetStepPartitioningMeta = new StepPartitioningMeta();

  clusterSchema = null; // non selected by default.

  remoteInputSteps = new ArrayList<RemoteStep>();
  remoteOutputSteps = new ArrayList<RemoteStep>();

  attributesMap = new HashMap<String, Map<String, String>>();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:30,代码来源:StepMeta.java


示例20: init

import org.pentaho.di.core.plugins.StepPluginType; //导入依赖的package包/类
/**
 * Initializes the Kettle environment. This method performs the following operations:
 * <p/>
 * - Creates a Kettle "home" directory if it does not already exist - Reads in the kettle.properties file -
 * Initializes the logging back-end - Sets the console log level to debug - If specified by parameter, configures
 * Simple JNDI - Registers the native types and the plugins for the various plugin types - Reads the list of variables
 * - Initializes the Lifecycle listeners
 *
 * @param simpleJndi true to configure Simple JNDI, false otherwise
 * @throws KettleException Any errors that occur during initialization will throw a KettleException.
 */
public static void init( boolean simpleJndi ) throws KettleException {
  init( Arrays.asList(
    RowDistributionPluginType.getInstance(),
    StepPluginType.getInstance(),
    StepDialogFragmentType.getInstance(),
    PartitionerPluginType.getInstance(),
    JobEntryPluginType.getInstance(),
    LogTablePluginType.getInstance(),
    RepositoryPluginType.getInstance(),
    LifecyclePluginType.getInstance(),
    KettleLifecyclePluginType.getInstance(),
    ImportRulePluginType.getInstance(),
    CartePluginType.getInstance(),
    CompressionPluginType.getInstance(),
    AuthenticationProviderPluginType.getInstance(),
    AuthenticationConsumerPluginType.getInstance(),
    EnginePluginType.getInstance()
  ), simpleJndi );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:31,代码来源:KettleEnvironment.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CloudSolrServer类代码示例发布时间:2022-05-21
下一篇:
Java FragmentEvent类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap