use of org.apache.hadoop.hive.metastore.events.PreReadDatabaseEvent in project hive by apache.
the class ReadDatabaseEvent method getInputHObjs.
private List<HivePrivilegeObject> getInputHObjs() {
LOG.debug("==> ReadDatabaseEvent.getInputHObjs()");
List<HivePrivilegeObject> ret = new ArrayList<>();
PreReadDatabaseEvent preReadDatabaseEvent = (PreReadDatabaseEvent) preEventContext;
Database database = preReadDatabaseEvent.getDatabase();
if (database != null) {
ret.add(getHivePrivilegeObject(database));
COMMAND_STR = buildCommandString(COMMAND_STR, database);
LOG.debug("<== ReadDatabaseEvent.getInputHObjs(): ret=" + ret);
}
return ret;
}
Aggregations