Transform
Declares transforms by name for use in policies, views, cursors, etc.
For backwards compatibility (cortex < 2.13.0), any transform not assigned a name takes on the export
property of the library in which it is defined.
A transform can extend require('runtime.transform').Transform
or not. If it does, the transform can tweak the default limits for the each()
cycle in the constructor.
See the section on scripting transforms for more examples.
@transform(name, options) / @transform(options)
Arguments
options
{ Object } Options objectname
{ String } The custom (c_
) name of the transform. Used to register and override existing transforms.environment
{ String = "*" } Limits registering to an environment. Possible values (*, production, development).weight
{ Number = 0 } The transform weight.
Constructor Options
transformOptions
{ Object } UnusedruntimeOptions
{ Object } Options passed to the transform class constructorruntime
{ Object }name
{ String }environment
{ String = "*" }weight
{ Number = 0 }metadata
{ Object }resource
{ String }className
{ String }methodName
{ String }static
{ Boolean }loc
{ Object }line
{ String }column
{ String }
Last updated