org.pentaho.di.trans.steps.script
Class ScriptAddedFunctions
java.lang.Object
org.pentaho.di.trans.steps.script.ScriptAddedFunctions
public class ScriptAddedFunctions
- extends Object
Method Summary |
static Object |
abs(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
Alert(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
appendToFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
ceil(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
copyFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
createFolder(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object[] |
createRowCopy(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
date2str(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
dateAdd(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
dateDiff(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
decode(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
deleteFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
fileExists(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
fillString(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
fireToDB(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
floor(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
String |
getClassName()
|
static Object |
getDayNumber(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
getDigitsOnly(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
getEnvironmentVar(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
getFileExtension(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static double |
getFileSize(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
getFiscalDate(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static RowMetaInterface |
getInputRowMeta(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
getLastModifiedTime(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
getNextWorkingDay(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static RowMetaInterface |
getOutputRowMeta(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
getParentFoldername(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static double |
getProcessCount(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
getShortFilename(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
getTransformationName(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
getVariable(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static int |
indexOf(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
isCodepage(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
isDate(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static boolean |
isFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static boolean |
isFolder(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
isNum(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
isRegExp(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
isWorkingDay(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
LoadScriptFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
LoadScriptFromTab(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
lower(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
lpad(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
ltrim(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static boolean |
LuhnCheck(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
month(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
moveFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
num2str(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
print(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
println(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
putRow(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
quarter(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
replace(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
resolveIP(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
rpad(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
rtrim(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
sendMail(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
setEnvironmentVar(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
setVariable(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
str2date(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
str2num(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
str2RegExp(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
substr(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
touch(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
trim(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
trunc(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
truncDate(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static String |
upper(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
week(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static void |
writeToLog(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
static Object |
year(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
|
undefinedValue
public static Object undefinedValue
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
STRING_FUNCTION
public static final int STRING_FUNCTION
- See Also:
- Constant Field Values
NUMERIC_FUNCTION
public static final int NUMERIC_FUNCTION
- See Also:
- Constant Field Values
DATE_FUNCTION
public static final int DATE_FUNCTION
- See Also:
- Constant Field Values
LOGIC_FUNCTION
public static final int LOGIC_FUNCTION
- See Also:
- Constant Field Values
SPECIAL_FUNCTION
public static final int SPECIAL_FUNCTION
- See Also:
- Constant Field Values
FILE_FUNCTION
public static final int FILE_FUNCTION
- See Also:
- Constant Field Values
jsFunctionList
public static String[] jsFunctionList
ScriptAddedFunctions
public ScriptAddedFunctions()
getDigitsOnly
public static String getDigitsOnly(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
LuhnCheck
public static boolean LuhnCheck(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
indexOf
public static int indexOf(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getTransformationName
public static Object getTransformationName(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
appendToFile
public static void appendToFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getFiscalDate
public static Object getFiscalDate(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getProcessCount
public static double getProcessCount(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
writeToLog
public static void writeToLog(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
abs
public static Object abs(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
ceil
public static Object ceil(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
floor
public static Object floor(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getDayNumber
public static Object getDayNumber(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
isWorkingDay
public static Object isWorkingDay(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
fireToDB
public static Object fireToDB(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
dateDiff
public static Object dateDiff(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getNextWorkingDay
public static Object getNextWorkingDay(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
dateAdd
public static Object dateAdd(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
fillString
public static String fillString(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
isCodepage
public static Object isCodepage(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
ltrim
public static String ltrim(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
rtrim
public static String rtrim(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
lpad
public static String lpad(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
rpad
public static String rpad(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
year
public static Object year(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
month
public static Object month(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
quarter
public static Object quarter(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
week
public static Object week(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
str2RegExp
public static Object str2RegExp(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
touch
public static void touch(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
fileExists
public static Object fileExists(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
str2date
public static Object str2date(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
date2str
public static Object date2str(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
isRegExp
public static Object isRegExp(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
sendMail
public static void sendMail(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
upper
public static String upper(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
lower
public static String lower(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
num2str
public static String num2str(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
str2num
public static Object str2num(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
isNum
public static Object isNum(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
isDate
public static Object isDate(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
decode
public static Object decode(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
replace
public static String replace(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
Alert
public static String Alert(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
setEnvironmentVar
public static void setEnvironmentVar(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getEnvironmentVar
public static String getEnvironmentVar(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
trim
public static String trim(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
substr
public static String substr(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
resolveIP
public static String resolveIP(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
LoadScriptFile
public static void LoadScriptFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
LoadScriptFromTab
public static void LoadScriptFromTab(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
print
public static void print(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
println
public static void println(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getClassName
public String getClassName()
setVariable
public static void setVariable(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getVariable
public static String getVariable(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getOutputRowMeta
public static RowMetaInterface getOutputRowMeta(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getInputRowMeta
public static RowMetaInterface getInputRowMeta(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
createRowCopy
public static Object[] createRowCopy(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
putRow
public static void putRow(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
deleteFile
public static void deleteFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
createFolder
public static void createFolder(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
copyFile
public static void copyFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getFileSize
public static double getFileSize(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
isFile
public static boolean isFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
isFolder
public static boolean isFolder(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getShortFilename
public static String getShortFilename(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getFileExtension
public static String getFileExtension(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getParentFoldername
public static String getParentFoldername(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
getLastModifiedTime
public static String getLastModifiedTime(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
trunc
public static Object trunc(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
truncDate
public static Object truncDate(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)
moveFile
public static void moveFile(javax.script.ScriptEngine actualContext,
javax.script.Bindings actualObject,
Object[] ArgList,
Object FunctionContext)