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