public class EtlVariable extends Object implements ParametersCallback
etl variable available for all ETL file elements.
As of 1.1 a new syntax is introduced based on JEXL function namespaces:
date: namespace contains functions from
EtlVariable.DateUtils, e.g. date:now()text: namespace contains functions from
EtlVariable.TextUtils, e.g. text:ifNull()class: namespace contains functions from
EtlVariable.ClassUtils,
e.g. class:forName('java.lang.System').getProperty('java.version')| Modifier and Type | Class and Description |
|---|---|
static class |
EtlVariable.ClassUtils
Utility class for ETL expressions.
|
static class |
EtlVariable.DateUtils
Utility class for ETL file expressions.
|
static class |
EtlVariable.TextUtils
Utility class for ETL file expressions.
|
| Constructor and Description |
|---|
EtlVariable() |
EtlVariable(ParametersCallback parametersCallback,
Map<String,Object> globals) |
| Modifier and Type | Method and Description |
|---|---|
EtlVariable.ClassUtils |
getClazz() |
EtlVariable.DateUtils |
getDate() |
Map<String,Object> |
getGlobals()
Getter for a global variables storage.
|
Object |
getParameter(String name)
Accessor method for parameters available in the current execution context.
|
EtlVariable.TextUtils |
getText() |
Class |
loadClass(String name) |
public static final String NAME
public EtlVariable(ParametersCallback parametersCallback, Map<String,Object> globals)
public EtlVariable()
public EtlVariable.DateUtils getDate()
public EtlVariable.TextUtils getText()
public EtlVariable.ClassUtils getClazz()
public Class loadClass(String name) throws ClassNotFoundException
ClassNotFoundExceptionpublic Object getParameter(String name)
etl.getParameter('Column Name')getParameter in interface ParametersCallbackname - parameter name.public Map<String,Object> getGlobals()
This map is shared between all etl file elements and can be used for cases when there is a need to share some state globally. It is recommended to avoid using global variables except cases when it's really beneficiary and simplifies the ETL file.
Copyright © 2006-2012. All Rights Reserved.