[/map {"- map/map "}) [/map/topicref {"- map/topicref "}) [/map/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicmeta/navtitle {"- topic/navtitle "}) Transform Function Reference and Examples (navtitle][/map/topicref/topicmeta/linktext {"- map/linktext "}) Transform Function Reference and Examples (linktext][/map/topicref/topicmeta/shortdesc {"- map/shortdesc "}) This section lists data types, discusses data type conversions that take place when transformation scripts are applied, provides a list of reserved words and unsupported features of Groovy, and contains examples of custom transform function usage. It also includes the reference documentation for the custom transform functions in Big Data Discovery. (shortdesc] (topicmeta][/map/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) Data types (navtitle][/map/topicref/topicref/topicmeta/linktext {"- map/linktext "}) Data types (linktext][/map/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) In transformation scripts, the attribute's data type is represented as a Groovy data type. This topic discusses how the Dgraph data types match the Groovy data types. (shortdesc] (topicmeta] (topicref][/map/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) Data type conversions (navtitle][/map/topicref/topicref/topicmeta/linktext {"- map/linktext "}) Data type conversions (linktext][/map/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) When you apply your transformation script to the project data set or to the source Hive table (when you create a new data set from within Transform), the data processing in Big Data Discovery converts most of the Hive data types to its corresponding Dgraph data types. However, this can result in some of the original data types being changed or omitted. This topic discusses these data type conversions in detail. (shortdesc] (topicmeta] (topicref][/map/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) Unsupported Groovy language features and Reserved Keywords (navtitle][/map/topicref/topicref/topicmeta/linktext {"- map/linktext "}) Unsupported Groovy language features and Reserved Keywords (linktext][/map/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) This topic lists reserved keywords and those Groovy language features that are not supported in Big Data Discovery. (shortdesc] (topicmeta] (topicref][/map/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) Examples (navtitle][/map/topicref/topicref/topicmeta/linktext {"- map/linktext "}) Examples (linktext][/map/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) This section contains examples of different types of transformations you can create using transform functions and Groovy. (shortdesc] (topicmeta] (topicref][/map/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) List of transform functions (navtitle][/map/topicref/topicref/topicmeta/linktext {"- map/linktext "}) List of transform functions (linktext][/map/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) This section lists and describes custom transform functions in Big Data Discovery. (shortdesc] (topicmeta][/map/topicref/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) Conversion functions (navtitle][/map/topicref/topicref/topicref/topicmeta/linktext {"- map/linktext "}) Conversion functions (linktext][/map/topicref/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) Conversion functions change a value from one data type to another. (shortdesc] (topicmeta] (topicref][/map/topicref/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) Date functions (navtitle][/map/topicref/topicref/topicref/topicmeta/linktext {"- map/linktext "}) Date functions (linktext][/map/topicref/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) Date functions perform actions on Date objects, such as obtaining the month information from a specific date or adding time to a date. (shortdesc] (topicmeta] (topicref][/map/topicref/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) Enrichment functions (navtitle][/map/topicref/topicref/topicref/topicmeta/linktext {"- map/linktext "}) Enrichment functions (linktext][/map/topicref/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) Enrichment functions are based on Data Enrichment modules used as part of data processing in Big Data Discovery. You can use these functions to extract meaningful information from your data and modify attributes to make them more useful for analysis. (shortdesc] (topicmeta] (topicref][/map/topicref/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) Geocode functions (navtitle][/map/topicref/topicref/topicref/topicmeta/linktext {"- map/linktext "}) Geocode functions (linktext][/map/topicref/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) Geocode functions perform different actions on Geocode objects, such as calculating the distance between two Geocode values or obtaining a Geocode's latitude coordinate. (shortdesc] (topicmeta] (topicref][/map/topicref/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) Math functions (navtitle][/map/topicref/topicref/topicref/topicmeta/linktext {"- map/linktext "}) Math functions (linktext][/map/topicref/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) Math functions perform mathematical operations on your data. (shortdesc] (topicmeta] (topicref][/map/topicref/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) Set functions (navtitle][/map/topicref/topicref/topicref/topicmeta/linktext {"- map/linktext "}) Set functions (linktext][/map/topicref/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) Set functions perform various functions on values for multi-assign attributes, such as obtaining the size of the set, checking whether a set is empty, or converting an attribute from a multi-value to a single-value attribute. (shortdesc] (topicmeta] (topicref][/map/topicref/topicref/topicref {"- map/topicref "}) [/map/topicref/topicref/topicref/topicmeta {"- map/topicmeta "}) [/map/topicref/topicref/topicref/topicmeta/navtitle {"- topic/navtitle "}) String functions (navtitle][/map/topicref/topicref/topicref/topicmeta/linktext {"- map/linktext "}) String functions (linktext][/map/topicref/topicref/topicref/topicmeta/shortdesc {"- map/shortdesc "}) String functions perform different actions on Strings, such as converting an entire String to uppercase or removing whitespace from a String. (shortdesc] (topicmeta] (topicref] (topicref] (topicref] (map]