Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: getInputRowMeta()

  1. #1
    begunrom Guest

    Default getInputRowMeta()

    Hi,

    In processRow there is line to initialize outputRowMeta

    data.outputRowMeta = getInputRowMeta().clone();

    This works for example addXLM
    In my project getInputRowMeta().clone() returns null.

    I guess that this is because there are multiple input steps, all with
    a different field layout.

    Can someone explain where the initialization of InputRowMeta is
    supposed to happen and how i can fetch the InputRowMeta of inputstep x.

    --
    You received this message because you are subscribed to the Google Groups "kettle-developers" group.
    To post to this group, send email to kettle-developers (AT) googlegroups (DOT) com.
    To unsubscribe from this group, send email to kettle-developers+unsubscribe (AT) g...oups (DOT) com.
    For more options, visit this group at http://groups.google.com/group/kettle-developers?hl=en.

  2. #2
    Marc Marschner Guest

    Default RE: getInputRowMeta()

    Hi,

    You can first grab the RowSet (org.pentaho.di.core.RowSet) by calling the
    findInputRowSet(String sourceStep) of the BaseStep your Plugin should
    extend.
    From the RowSet, you can the RowMetaInterface by calling getRowMeta().

    RowSet rowSet = findInputRowSet("x");
    RowMetaInterface rowMeta = rowSet.getRowMeta();

    You can retrieve a list of all Steps connected as input to your current step
    from your dialogue for example, by calling

    String previousSteps[] = transMeta.getPrevStepNames(stepname);



    -----Original Message-----
    From: kettle-developers (AT) googlegroups (DOT) com
    [mailto:kettle-developers (AT) googlegroups (DOT) com] On Behalf Of begunrom
    Sent: Freitag, 09. September 2011 18:43
    To: kettle-developers
    Subject: getInputRowMeta()

    Hi,

    In processRow there is line to initialize outputRowMeta

    data.outputRowMeta = getInputRowMeta().clone();

    This works for example addXLM
    In my project getInputRowMeta().clone() returns null.

    I guess that this is because there are multiple input steps, all with
    a different field layout.

    Can someone explain where the initialization of InputRowMeta is
    supposed to happen and how i can fetch the InputRowMeta of inputstep x.

    --
    You received this message because you are subscribed to the Google Groups
    "kettle-developers" group.
    To post to this group, send email to kettle-developers (AT) googlegroups (DOT) com.
    To unsubscribe from this group, send email to
    kettle-developers+unsubscribe (AT) g...oups (DOT) com.
    For more options, visit this group at
    http://groups.google.com/group/kettle-developers?hl=en.


    --
    You received this message because you are subscribed to the Google Groups "kettle-developers" group.
    To post to this group, send email to kettle-developers (AT) googlegroups (DOT) com.
    To unsubscribe from this group, send email to kettle-developers+unsubscribe (AT) g...oups (DOT) com.
    For more options, visit this group at http://groups.google.com/group/kettle-developers?hl=en.

  3. #3
    begunrom Guest

    Default Re: getInputRowMeta()

    Thanks,

    I got it working:

    --
    You received this message because you are subscribed to the Google Groups "kettle-developers" group.
    To post to this group, send email to kettle-developers (AT) googlegroups (DOT) com.
    To unsubscribe from this group, send email to kettle-developers+unsubscribe (AT) g...oups (DOT) com.
    For more options, visit this group at http://groups.google.com/group/kettle-developers?hl=en.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.