Punchlets
Inside a Spark or Storm punchline you may want to insert some specific code using Punch language inside your pipeline.
Before going further, be sure to check this documentation which explains the basic principles of a punchlet
As you can see, Punch provides usefull operators to simplify the writing of these punchlets.
Here you can find a full documentation on each operators and about Punchlang API more generally
Then, once your Punchlet is ready to use, you have to import it in your pipeline, check these documentations to have a full description about Storm or Spark integration :