@Override public void alterFunction(String catName, String dbName, String funcName, Function newFunction) throws InvalidObjectException, MetaException { // TODO fucntionCache rawStore.alterFunction(catName, dbName, funcName, newFunction); }
@Override public void alter_function(String dbName, String funcName, Function newFunc) throws TException { String[] parsedDbName = parseDbName(dbName, conf); validateForAlterFunction(parsedDbName[DB_NAME], funcName, newFunc); boolean success = false; RawStore ms = getMS(); try { ms.openTransaction(); ms.alterFunction(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], funcName, newFunc); success = ms.commitTransaction(); } catch (InvalidObjectException e) { // Throwing MetaException instead of InvalidObjectException as the InvalidObjectException // is not defined for the alter_function method in the Thrift interface. throwMetaException(e); } finally { if (!success) { ms.rollbackTransaction(); } } }
@Override public void alterFunction(String catName, String dbName, String funcName, Function newFunction) throws InvalidObjectException, MetaException { // TODO fucntionCache rawStore.alterFunction(catName, dbName, funcName, newFunction); }
@Override public void alter_function(String dbName, String funcName, Function newFunc) throws InvalidOperationException, MetaException, TException { validateFunctionInfo(newFunc); boolean success = false; RawStore ms = getMS(); try { ms.openTransaction(); ms.alterFunction(dbName, funcName, newFunc); success = ms.commitTransaction(); } finally { if (!success) { ms.rollbackTransaction(); } } }
@Override public void alter_function(String dbName, String funcName, Function newFunc) throws InvalidOperationException, MetaException, TException { validateFunctionInfo(newFunc); boolean success = false; RawStore ms = getMS(); try { ms.openTransaction(); ms.alterFunction(dbName, funcName, newFunc); success = ms.commitTransaction(); } finally { if (!success) { ms.rollbackTransaction(); } } }
@Override public void alter_function(String dbName, String funcName, Function newFunc) throws TException { validateFunctionInfo(newFunc); boolean success = false; RawStore ms = getMS(); String[] parsedDbName = parseDbName(dbName, conf); try { ms.openTransaction(); ms.alterFunction(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], funcName, newFunc); success = ms.commitTransaction(); } finally { if (!success) { ms.rollbackTransaction(); } } }