Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


rHpcc (version 1.0)

ECLTransform: Creates an ECL "TRANSFORM" definition.

Description

Creates an ECL "TRANSFORM" definition. A TRANSFORM defines the specific operations that must occur on a record-by-record basis.

Arguments

Examples

Run this code
  ## Not run: 
#     transfrm <- ECLTransform$new(name="transfrm", outECLRecord=rec_revenueDef);
#     transfrm$addField("SELF.orderNumber", "RIGHT.orderNumber");
#     transfrm$addField("SELF.prodCode", "LEFT.productCode");
#     transfrm$addField("SELF.prodName", "LEFT.productName");
#     transfrm$addField("SELF.revenue", "RIGHT.priceEach * RIGHT.quantityOrdered");
#     
#     joinCondition <- "LEFT.productCode=RIGHT.productCode"
#     ds_revenue <- ECLJoin$new(name="ds_revenue", leftRecordSet= ds_products, 
#               rightRecordSet=ds_orderDetails, joinCondition = joinCondition, 
#               joinType = "INNER", def=transfrm$print());
#     ecl1$add(ds_revenue)
#     output <- ECLOutput$new(name="output", def = ds_revenue$getName())
#     ecl$add(output)
#     ecl$print()
#     xmlContent <- ecl$execute()
#     data <- parseResults(xmlContent)
#     data
#   ## End(Not run)

Run the code above in your browser using DataLab