|
@@ -0,0 +1,58 @@
|
|
|
+//nothor
|
|
|
+//nohthor
|
|
|
+
|
|
|
+NameRec := RECORD
|
|
|
+ string10 First;
|
|
|
+ string15 Last;
|
|
|
+END;
|
|
|
+
|
|
|
+AddressRec := RECORD
|
|
|
+ string10 City;
|
|
|
+ string2 State;
|
|
|
+ integer4 ZipCode;
|
|
|
+END;
|
|
|
+
|
|
|
+PersonRec := RECORD
|
|
|
+ NameRec Name;
|
|
|
+ AddressRec Address;
|
|
|
+END;
|
|
|
+
|
|
|
+pipe_send := DATASET([{{'Joe', 'Doe'}, {'Fresno', 'CA', 11111}},
|
|
|
+{{'Jason', 'Jones'}, {'Tempe', 'AZ', 22222}},
|
|
|
+{{'Becky', 'Lopez'}, {'New York', 'NY', 33333}},
|
|
|
+{{'Roderic', 'Lykke'}, {'Lubbock', 'TX', 44444}},
|
|
|
+{{'Rina', 'Yonkers'}, {'Denver', 'CO', 55555}},
|
|
|
+{{'Laverna', 'Campa'}, {'Detroit', 'MI', 66666}},
|
|
|
+{{'Shantell', 'Mattera'}, {'Toledo', 'OH', 77777}},
|
|
|
+{{'John', 'Smith'}, {'Boise', 'ID', 88888}},
|
|
|
+{{'Jane','Smith'}, {'Smallville', 'KY', 99999}}], PersonRec);
|
|
|
+
|
|
|
+/* NOTES:
|
|
|
+ roxiepipe = the executable we're calling
|
|
|
+ iw = Input Width
|
|
|
+ vip = Virtual IP
|
|
|
+ t = # threads
|
|
|
+ ow = output width
|
|
|
+ b = # records in a batch
|
|
|
+ mr = max retries
|
|
|
+ h = ??? -- the URL to the Roxie batch service
|
|
|
+ r = name of the results dataset (case sensitive!)
|
|
|
+ q = query
|
|
|
+*/
|
|
|
+
|
|
|
+
|
|
|
+// This is the remote call to the 'roxie_echo' service.
|
|
|
+pipe_recv := PIPE(pipe_send,
|
|
|
+ 'roxiepipe' +
|
|
|
+ ' -iw ' + SIZEOF(PersonRec) +
|
|
|
+ ' -t 1' +
|
|
|
+ ' -ow ' + SIZEOF(PersonRec) +
|
|
|
+ ' -b 3' +
|
|
|
+ ' -mr 2' +
|
|
|
+ ' -h .:9876 ' +
|
|
|
+ ' -r Peeps' +
|
|
|
+ ' -q "<roxie_echo format=\'raw\'><peeps id=\'id\' format=\'raw\'></peeps></roxie_echo>"'
|
|
|
+, PersonRec);
|
|
|
+
|
|
|
+OUTPUT(pipe_recv);
|
|
|
+
|