|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oozie.util.ELConstantsFunctions
public class ELConstantsFunctions
Base EL constants and functions.
Field Summary | |
---|---|
static long |
GB
GigaByte constant (1024 MB). |
static long |
KB
KiloByte constant (1024). |
static long |
MB
MegaByte constant (1024 KB). |
static long |
PB
PetaByte constant (1024 TB). |
static int |
SUBMIT_DAYS
|
static int |
SUBMIT_HOURS
|
static int |
SUBMIT_MINUTES
|
static long |
TB
TeraByte constant (1024 GB). |
Constructor Summary | |
---|---|
ELConstantsFunctions()
|
Method Summary | |
---|---|
static String |
concat(String s1,
String s2)
Return the concatenation of 2 strings. |
static Object |
firstNotNull(Object o1,
Object o2)
Return the first not null value, or null if both are null . |
static String |
timestamp()
Return the UTC current date and time in W3C format down to second (yyyy-MM-ddTHH:mm:ssZ). |
static String |
toConfigurationStr(Map<String,String> map)
|
static String |
toJsonStr(Map<String,String> map)
|
static String |
toPropertiesStr(Map<String,String> map)
|
static String |
trim(String input)
Return the trimmed version of the given string. |
static String |
urlEncode(String input)
Translates a string into application/x-www-form-urlencoded format using UTF-8 encoding scheme. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long KB
public static final long MB
public static final long GB
public static final long TB
public static final long PB
public static final int SUBMIT_MINUTES
public static final int SUBMIT_HOURS
public static final int SUBMIT_DAYS
Constructor Detail |
---|
public ELConstantsFunctions()
Method Detail |
---|
public static Object firstNotNull(Object o1, Object o2)
null
value, or null
if both are null
. Defined for EL
as 'Object firstNotNull(Object, Object)'.
o1
- first value.o2
- second value.
null
value, or or null
if both are null
public static String concat(String s1, String s2)
null
value is considered as an empty
string.
s1
- first string.s2
- second string.
s1
and s2
.public static String trim(String input)
input
- string to be trimmed
null
public static String timestamp()
public static String urlEncode(String input)
application/x-www-form-urlencoded
format using UTF-8 encoding scheme. Bytes
for unsafe characters are also obtained using UTF-8 scheme.
input
- string to be encoded
String
public static String toJsonStr(Map<String,String> map)
public static String toPropertiesStr(Map<String,String> map)
public static String toConfigurationStr(Map<String,String> map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |