Search in sources :

Example 1 with PreReadDatabaseEvent

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;
}
Also used : ArrayList(java.util.ArrayList) Database(org.apache.hadoop.hive.metastore.api.Database) PreReadDatabaseEvent(org.apache.hadoop.hive.metastore.events.PreReadDatabaseEvent) HivePrivilegeObject(org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject)

Aggregations

ArrayList (java.util.ArrayList)1 Database (org.apache.hadoop.hive.metastore.api.Database)1 PreReadDatabaseEvent (org.apache.hadoop.hive.metastore.events.PreReadDatabaseEvent)1 HivePrivilegeObject (org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject)1