class SetValueConstant extends BaseTransform<SetValueConstantMeta, SetValueConstantData> implements ITransform<SetValueConstantMeta, SetValueConstantData> {

  private void updateField( Object[] r ) throws Exception {
    // Loop through fields
    for ( int i = 0; i < data.getFieldnr(); i++ ) {
      // DO CONVERSION OF THE DEFAULT VALUE ...
      // Entered by user
      IValueMeta targetValueMeta = data.getOutputRowMeta().getValueMeta( data.getFieldnrs()[ i ] );
      IValueMeta sourceValueMeta = data.getConvertRowMeta().getValueMeta( data.getFieldnrs()[ i ] );

      if ( !Utils.isEmpty( meta.getField( i ).getReplaceMask() ) ) {
        sourceValueMeta.setConversionMask( meta.getField( i ).getReplaceMask() );
      }

      sourceValueMeta.setStorageType( IValueMeta.STORAGE_TYPE_NORMAL );
      r[ data.getFieldnrs()[ i ] ] = targetValueMeta.convertData( sourceValueMeta, data.getRealReplaceByValues()[ i ] );
      targetValueMeta.setStorageType( IValueMeta.STORAGE_TYPE_NORMAL );
    }
  }

  public  SetValueConstant( TransformMeta transformMeta, SetValueConstantMeta meta, SetValueConstantData data, int copyNr, PipelineMeta pipelineMeta,
                           Pipeline pipeline );

}