public PrincipalPrivilegeSet get_privilege_set(HiveObjectType column, String dbName, String tableName, List<String> partValues, String col, String userName, List<String> groupNames) throws HiveException { if (!isRunFromMetaStore()) { return hiveClient.get_privilege_set( column, dbName, tableName, partValues, col, userName, groupNames); } else { HiveObjectRef hiveObj = new HiveObjectRef(column, dbName, tableName, partValues, col); try { return handler.get_privilege_set(hiveObj, userName, groupNames); } catch (MetaException e) { throw new HiveException(e); } catch (TException e) { throw new HiveException(e); } } }
public Database getDatabase(String dbName) throws HiveException { if (!isRunFromMetaStore()) { return hiveClient.getDatabase(dbName); } else { try { return handler.get_database_core(dbName); } catch (NoSuchObjectException e) { throw new HiveException(e); } catch (MetaException e) { throw new HiveException(e); } } }
public PrincipalPrivilegeSet get_privilege_set(HiveObjectType column, String dbName, String tableName, List<String> partValues, String col, String userName, List<String> groupNames) throws HiveException { if (!isRunFromMetaStore()) { return Hive.getWithFastCheck(conf).get_privilege_set( column, dbName, tableName, partValues, col, userName, groupNames); } else { HiveObjectRef hiveObj = new HiveObjectRef(column, dbName, tableName, partValues, col); try { return handler.get_privilege_set(hiveObj, userName, groupNames); } catch (MetaException e) { throw new HiveException(e); } catch (TException e) { throw new HiveException(e); } } }
/** * Get the database object * @param catName catalog name. If null, the default will be pulled from the conf. This * means the caller does not have to check isCatNameSet() * @param dbName database name. * @return * @throws HiveException */ public Database getDatabase(String catName, String dbName) throws HiveException { catName = catName == null ? MetaStoreUtils.getDefaultCatalog(conf) : catName; if (!isRunFromMetaStore()) { return Hive.getWithFastCheck(conf).getDatabase(catName, dbName); } else { try { return handler.get_database_core(catName, dbName); } catch (NoSuchObjectException e) { throw new HiveException(e); } catch (MetaException e) { throw new HiveException(e); } } }
public PrincipalPrivilegeSet get_privilege_set(HiveObjectType column, String dbName, String tableName, List<String> partValues, String col, String userName, List<String> groupNames) throws HiveException { if (!isRunFromMetaStore()) { return Hive.getWithFastCheck(conf).get_privilege_set( column, dbName, tableName, partValues, col, userName, groupNames); } else { HiveObjectRef hiveObj = new HiveObjectRef(column, dbName, tableName, partValues, col); try { return handler.get_privilege_set(hiveObj, userName, groupNames); } catch (MetaException e) { throw new HiveException(e); } catch (TException e) { throw new HiveException(e); } } }
public Database getDatabase(String dbName) throws HiveException { if (!isRunFromMetaStore()) { return Hive.getWithFastCheck(conf).getDatabase(dbName); } else { try { return handler.get_database_core(dbName); } catch (NoSuchObjectException e) { throw new HiveException(e); } catch (MetaException e) { throw new HiveException(e); } } }