/** * Convert thrift HiveObjectRef to plugin HivePrivilegeObject * @param privObj * @return * @throws HiveException */ public static HiveObjectRef getThriftHiveObjectRef(HivePrivilegeObject privObj) throws HiveException { if (privObj == null) { return null; } HiveObjectType objType = getThriftHiveObjType(privObj.getType()); return new HiveObjectRef(objType, privObj.getDbname(), privObj.getObjectName(), null, null); }
/** * Convert thrift HiveObjectRef to plugin HivePrivilegeObject * @param privObj * @return * @throws HiveException */ public static HiveObjectRef getThriftHiveObjectRef(HivePrivilegeObject privObj) throws HiveException { if (privObj == null) { return null; } HiveObjectType objType = getThriftHiveObjType(privObj.getType()); return new HiveObjectRef(objType, privObj.getDbname(), privObj.getObjectName(), null, null); }
/** * Convert thrift HiveObjectRef to plugin HivePrivilegeObject * @param privObj * @return * @throws HiveException */ public static HiveObjectRef getThriftHiveObjectRef(HivePrivilegeObject privObj) throws HiveException { if (privObj == null) { return null; } HiveObjectType objType = getThriftHiveObjType(privObj.getType()); return new HiveObjectRef(objType, privObj.getDbname(), privObj.getObjectName(), null, null); }