ECL-class: Class '"ECL"'

Description Fields Methods Examples

Description

The base class that generates the ECL(Enterprise Control Language) code and executes it on the HPCC cluster.

Fields

hostName:

Object of class character HPCC server hostname

port:

Object of class character HPCC server port

eclCode:

Object of class character ECL code you want to execute

clusterName:

Object of class character Cluster name on which the ECL code will execute

Methods

execute():

This method internally calls the eclDirectCall method which executes the ECL code.

print():

Prints the ECL code.

addImport(value):

Used to add Import definitions.

add(obj):

Used to add definitions to the existing code.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  ## Not run: 
    ecl1 <- ECL$new(hostName="127.0.0.1")
    recPerson <- ECLRecord$new(name="Person")
    recPerson$addField("STRING", "code")
    recPerson$addField("STRING", "firstName")
    recPerson$addField("STRING", "lastName")
    recPerson$addField("STRING", "address")
    recPerson$addField("STRING", "stateCode")
    recPerson$addField("STRING", "city")
    recPerson$addField("STRING", "zip")
    ecl1$add(recPerson)
  
## End(Not run)

rHpcc documentation built on May 2, 2019, 11:04 a.m.

Related to ECL-class in rHpcc...