|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.server.util.UtilityMethods
public final class UtilityMethods
The Class UtilityMethods.
Method Summary | ||
---|---|---|
static boolean |
anyNull(Object... args)
Any null. |
|
static String |
confToString(org.apache.hadoop.conf.Configuration conf)
Conf to string. |
|
static org.apache.commons.dbcp.BasicDataSource |
getDataSourceFromConf(org.apache.hadoop.conf.Configuration conf)
Gets the data source from conf. |
|
static
|
mergeMaps(Map<K,V> into,
Map<K,V> from,
boolean override)
Merge maps. |
|
static String[] |
queryDatabase(DataSource ds,
String querySql,
boolean allowNull,
Object... args)
Query database. |
|
static String |
removeDomain(String username)
Removes the domain. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <K,V> void mergeMaps(Map<K,V> into, Map<K,V> from, boolean override)
K
- the key typeV
- the value typeinto
- the intofrom
- the fromoverride
- the overridepublic static String removeDomain(String username)
username
- the username
public static boolean anyNull(Object... args)
args
- the args
public static String[] queryDatabase(DataSource ds, String querySql, boolean allowNull, Object... args) throws SQLException
ds
- the dsquerySql
- the query sqlallowNull
- the allow nullargs
- the args
SQLException
- the SQL exceptionpublic static org.apache.commons.dbcp.BasicDataSource getDataSourceFromConf(org.apache.hadoop.conf.Configuration conf)
conf
- the conf
public static String confToString(org.apache.hadoop.conf.Configuration conf)
conf
- the conf
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |