Pnyx
class to access the Fluent API. It uses state-base logic for wiring together
sources, filters, transforms, buffering, and destinations. You can learn more about the internal
State Machine, but can be ignored for simple projects. At a high
level, the state-machine permits method calls in the following sequence:
parseCsv
to convert to Row or print
to convert to Line. For input and output,
Pnyx expects only 1 call. However, it supports multiple inputs via the cat
method, and multiple
outputs via the tee
method.
Pnyx
object, which makes method chaining simple.
using (var p = new Pnyx()) p.readString("a,b,c,d") .parseCsv() .print("$4|$3|$2|$1") .writeStdout(); // outputs: d|c|b|a