/
Steps to Build a Directive
Steps to Build a Directive
Clone the example repository from github.
git clone git@github.com:hydrator/example-directive
Implementing three interfaces define(), initialize() and execute().
Build a JAR (
mvn clean package
)Deploy the JAR as a plugin into CDAP through UI, CLI, or Microservices.
Use the plugin as follows:
[1] parse-as-csv :body ',' true
[2] #pragma load-directives text-reverse,text-sanitization;
[3] text-reverse :text
[4] text-sanitization :description
More description of the above lines.
[2]
Dynamically loads the two UDDs as CDAP Plugins.[3]
Uses the directive.
Related content
Set Column directive
Set Column directive
Read with this
Format Date directive
Format Date directive
Read with this
Parse as Simple Date directive
Parse as Simple Date directive
Read with this
Developing Plugins Guide
Developing Plugins Guide
Read with this
Plugin Basics
Plugin Basics
Read with this
Pipeline Structure
Pipeline Structure
Read with this
Created in 2020 by Google Inc.