Class MergeRowsHelper

java.lang.Object
org.pentaho.di.trans.step.BaseStepHelper
org.pentaho.di.trans.steps.mergerows.MergeRowsHelper
All Implemented Interfaces:
StepHelperInterface

public class MergeRowsHelper extends BaseStepHelper implements StepHelperInterface
Helper class for the Merge Rows step

Provides step-specific actions and utilities for the Merge Rows step, such as retrieving reference step fields.

  • Constructor Details

    • MergeRowsHelper

      public MergeRowsHelper(MergeRowsMeta mergeRowsMeta)
  • Method Details

    • handleStepAction

      protected org.json.simple.JSONObject handleStepAction(String method, TransMeta transMeta, Map<String,String> queryParams)
      Handles step-specific actions for MergeRows.
      Specified by:
      handleStepAction in class BaseStepHelper
      Parameters:
      method - the action method name
      transMeta - the transformation metadata
      queryParams - additional query parameters
      Returns:
      a JSON object containing the response
    • getReferenceStepsFields

      public org.json.simple.JSONObject getReferenceStepsFields(TransMeta transMeta) throws org.pentaho.di.core.exception.KettleException
      Retrieves the field names from the reference step (first info stream) for MergeRows.
      Parameters:
      transMeta - the transformation metadata
      Returns:
      a JSON object containing the field names under the key "stepFieldsNames"
      Throws:
      org.pentaho.di.core.exception.KettleException - if an error occurs while retrieving the fields