Package org.pentaho.di.core.row

Examples of org.pentaho.di.core.row.RowMetaInterface


          final StepMetaDataCombi metaDataCombi = (StepMetaDataCombi) stepList.get(i);
          if (stepName.equals(metaDataCombi.stepname) == false)
          {
            continue;
          }
          final RowMetaInterface row = transMeta.getStepFields(stepName);
          tableProducer = new TableProducer(row, queryLimit, stopOnError);
          metaDataCombi.step.addRowListener(tableProducer);
          break;
        }
View Full Code Here


  }

  private void initMainRowStream() throws KettleException {

    // steps inputRowMeta might be null in case we have info steps only, or there's no input to begin with
    RowMetaInterface inputRowMeta = step.getInputRowMeta();
    if (inputRowMeta == null) {
      inputRowMeta = new RowMeta();
    }

    data.inputRowMeta = inputRowMeta.clone();
    data.inputFieldNames = data.inputRowMeta.getFieldNames();

    data.outputRowMeta = inputRowMeta.clone();
    meta.getFields(data.outputRowMeta, step.getStepname(), null, null, step);

    data.cacheFieldNames(data.inputRowMeta);
    data.cacheFieldNames(data.outputRowMeta);
View Full Code Here

    {
      public void run()
      {
        try {
          // collect main input fields
          RowMetaInterface inputFields = transMeta.getPrevStepFields(input.getParentStepMeta());

          // collect fields from input steps
          HashMap<String, RowMetaInterface> infoStepFields = new HashMap<String, RowMetaInterface>();
          for (String step : input.getStepIOMeta().getInfoStepnames()) {
            infoStepFields.put(step, transMeta.getStepFields(step));
          }

          // collect output fields
          RowMetaInterface outputFields = transMeta.getStepFields(stepname);
          RowMetaInterface errorFields = null;

          if (input.getParentStepMeta().isDoingErrorHandling()) {
            errorFields = input.getParentStepMeta().getStepErrorMeta().getErrorFields();
          }
View Full Code Here

        for (String step : infoFields.keySet()) {
          TreeItem parent = infoTreeItems.get(step);
          if (parent != null) {
            parent.removeAll();
            RowMetaInterface stepFields = infoFields.get(step);
            for (ValueMetaInterface v : stepFields.getValueMetaList()) {
              TreeItem m = new TreeItem(parent, SWT.NONE);
              m.setText(new String[] { v.getName(), v.getTypeDesc(), "" });
              m.setImage(fieldImage);
            }
            parent.setExpanded(true);
View Full Code Here

      if (step == null)
      {
        throw new ReportDataFactoryException("Cannot find the specified transformation step " + stepName);
      }

      final RowMetaInterface row = transMeta.getStepFields(getStepName());
      final TableProducer tableProducer = new TableProducer(row, 1, true);
      return tableProducer.getTableModel();
    }
    catch (final EvaluationException e)
    {
View Full Code Here

  {
    final Trans trans = prepareTransformation(parameters, context, transMeta);

    StepInterface targetStep = findTargetStep(trans);

    final RowMetaInterface row = transMeta.getStepFields(getStepName());
    TableProducer tableProducer = new TableProducer(row, queryLimit, isStopOnError());
    targetStep.addRowListener(tableProducer);

    currentlyRunningTransformation = trans;
    try
View Full Code Here

            }
            // this is the step we are looking for
            if ( ComponentBase.debug ) {
              debug( Messages.getInstance().getString( "Kettle.DEBUG_GETTING_STEP_METADATA" ) ); //$NON-NLS-1$
            }
            RowMetaInterface row = trans.getTransMeta().getStepFields( stepName );

            // create the metadata that the Pentaho result sets need
            String[] fieldNames = row.getFieldNames();
            String[][] columns = new String[1][fieldNames.length];
            for ( int column = 0; column < fieldNames.length; column++ ) {
              columns[0][column] = fieldNames[column];
            }
            if ( ComponentBase.debug ) {
View Full Code Here

TOP

Related Classes of org.pentaho.di.core.row.RowMetaInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.