Learn R Programming

rHpcc (version 1.0)

eclDirectCall: Executes the ECL code on the cluster specified and returns the XML response

Description

Executes the ECL code on the cluster specified and returns the XML response.

Usage

eclDirectCall(hostName, port = "8008", clusterName = "thor", eclCode)

Arguments

hostName
HPCC server hostname.
port
HPCC server port.
clusterName
Cluster name on which the ECL code will execute.
eclCode
ECL code you want to execute

Examples

Run this code
  ## Not run: 
#     eclCode <- "recCountyFipsCode := RECORD
#         String CountyNames;
#         UNSIGNED3 CountyFipsCode;
#         UNSIGNED2 StateFipsCode;
#       END;
#   
#       dsCountyFips := DATASET('~seer::countyfipscode', recCountyFipsCode, CSV);
#       OUTPUT(COUNT(dsCountyFips));"
#       
#       eclDirectCall(hostName="127.0.0.1", eclCode=eclCode)
#   ## End(Not run)

Run the code above in your browser using DataLab