Learn R Programming

rHpcc (version 1.0)

ECLDistribute-class: Class "ECLDistribute"

Description

Creates an ECL "DISTRIBUTE" definition. The DISTRIBUTE function re-distributes records from the recordset across all the nodes of the cluster

Arguments

Fields

name:
Object of class character Class name.
inECLRecord:
Object of class ECLRecord Input record name.
condition:
Object of class character ECl definition/code

Methods

print():
Prints the ECL code.
getName():
Returns class name.

Examples

Run this code
   ## Not run: 
#       ecl1 <- ECL$new(hostName="127.0.0.1", port="8008")
#       recPerson <- ECLRecord$new(name="rec_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)
#       
#       condition <- "SKEW(0.1)"
#       distribute <- ECLDistribute$new(inECLRecord=recPerson, condition=condition)
#       ecl1$add(distribute)
#       ecl1$print()
#    ## End(Not run)

Run the code above in your browser using DataLab