You create transformations in the
Transformation Editor, this is the built-in Groovy
editor within the
Transform area in Studio.
The
Transformation Editor becomes available when you
select
Custom Transform, or
Add Attribute from the attribute menu, or when you
click the toolbox icon in the top right corner of
Transform, in Studio:
In the editor:
- Syntax highlighting
enables color-coding of different elements in your transformation to indicate
their type.
- Auto complete lets
you view a list of autocomplete suggestions for the word you're typing, by
pressing
Ctrl+space. Use the arrow keys to navigate this
list and press
Enter to select the highlighted item.
- Error checking
includes a built-in static parser that performs error checking when you preview
or save your transformation. For more information, see
Exception handling.
You can enter code into the editor in two different ways, depending on
your programming experience level:
- If you are comfortable with
Groovy, you can type directly into the
Transformation Editor. Your code can contain any
of the supported Groovy language features, and custom transform functions
available in Big Data Discovery.
-
If you have limited experience with Groovy, you can create
transformations using predefined lists of custom transform functions and
available attributes:
To add items from either list to your transformation, click and drag
its name into the
Transformation Editor.
To add an item from the
Attributes list as a parameter to a function,
drag the attribute's name directly on top of the function's placeholder text: