@Override public List<Function> getAllFunctions(String catName) throws MetaException { // TODO fucntionCache return rawStore.getAllFunctions(catName); }
@Override public GetAllFunctionsResponse get_all_functions() throws MetaException { GetAllFunctionsResponse response = new GetAllFunctionsResponse(); startFunction("get_all_functions"); RawStore ms = getMS(); List<Function> allFunctions = null; Exception ex = null; try { // Leaving this as the 'hive' catalog (rather than choosing the default from the // configuration) because all the default UDFs are in that catalog, and I think that's // would people really want here. allFunctions = ms.getAllFunctions(DEFAULT_CATALOG_NAME); } catch (Exception e) { ex = e; throw newMetaException(e); } finally { endFunction("get_all_functions", allFunctions != null, ex); } response.setFunctions(allFunctions); return response; }
try { Deadline.registerIfNot(100000); List<Function> functions = store.getAllFunctions(DEFAULT_CATALOG_NAME); for (Function func : functions) { store.dropFunction(DEFAULT_CATALOG_NAME, func.getDbName(), func.getFunctionName());
@Override public List<Function> getAllFunctions(String catName) throws MetaException { // TODO fucntionCache return rawStore.getAllFunctions(catName); }
@Override public GetAllFunctionsResponse get_all_functions() throws MetaException { GetAllFunctionsResponse response = new GetAllFunctionsResponse(); startFunction("get_all_functions"); RawStore ms = getMS(); List<Function> allFunctions = null; Exception ex = null; try { // Leaving this as the 'hive' catalog (rather than choosing the default from the // configuration) because all the default UDFs are in that catalog, and I think that's // would people really want here. allFunctions = ms.getAllFunctions(DEFAULT_CATALOG_NAME); } catch (Exception e) { ex = e; throw newMetaException(e); } finally { endFunction("get_all_functions", allFunctions != null, ex); } response.setFunctions(allFunctions); return response; }