public Set<String> getCurrentFunctionNames() { lock.lock(); try { return getFunctionNames((Pattern)null); } finally { lock.unlock(); } }
public Set<String> getFunctionNames(String funcPatternStr) { lock.lock(); try { return getFunctionNames(Pattern.compile(funcPatternStr)); } catch (PatternSyntaxException e) { return Collections.emptySet(); } finally { lock.unlock(); } }
public Set<String> getCurrentFunctionNames() { lock.lock(); try { return getFunctionNames((Pattern)null); } finally { lock.unlock(); } }
public Set<String> getFunctionNames(String funcPatternStr) { lock.lock(); try { return getFunctionNames(Pattern.compile(funcPatternStr)); } catch (PatternSyntaxException e) { return Collections.emptySet(); } finally { lock.unlock(); } }
public static Set<String> getFunctionNames(String funcPatternStr) { Set<String> funcNames = new TreeSet<String>(); funcNames.addAll(system.getFunctionNames(funcPatternStr)); if (SessionState.getRegistry() != null) { funcNames.addAll(SessionState.getRegistry().getFunctionNames(funcPatternStr)); } return funcNames; }
public static Set<String> getFunctionNames(String funcPatternStr) { Set<String> funcNames = new TreeSet<String>(); funcNames.addAll(system.getFunctionNames(funcPatternStr)); if (SessionState.getRegistry() != null) { funcNames.addAll(SessionState.getRegistry().getFunctionNames(funcPatternStr)); } return funcNames; }
/** * Unregisters all the functions belonging to the specified database * @param dbName database name * @throws HiveException */ public void unregisterFunctions(String dbName) throws HiveException { lock.lock(); try { Set<String> funcNames = getFunctionNames(dbName.toLowerCase() + "\\..*"); for (String funcName : funcNames) { unregisterFunction(funcName); } } finally { lock.unlock(); } }
/** * Unregisters all the functions belonging to the specified database * @param dbName database name * @throws HiveException */ public void unregisterFunctions(String dbName) throws HiveException { lock.lock(); try { Set<String> funcNames = getFunctionNames(dbName.toLowerCase() + "\\..*"); for (String funcName : funcNames) { unregisterFunction(funcName); } } finally { lock.unlock(); } }
public synchronized Set<String> getCurrentFunctionNames() { return getFunctionNames((Pattern)null); }
public synchronized Set<String> getFunctionNames(String funcPatternStr) { try { return getFunctionNames(Pattern.compile(funcPatternStr)); } catch (PatternSyntaxException e) { return Collections.emptySet(); } }
public static Set<String> getFunctionNames(String funcPatternStr) { Set<String> funcNames = new TreeSet<String>(); funcNames.addAll(system.getFunctionNames(funcPatternStr)); if (SessionState.getRegistry() != null) { funcNames.addAll(SessionState.getRegistry().getFunctionNames(funcPatternStr)); } return funcNames; }