Search in sources :

Example 1 with PreReadTableEvent

use of org.apache.hadoop.hive.metastore.events.PreReadTableEvent in project hive by apache.

the class ReadTableEvent method getInputHObjs.

private List<HivePrivilegeObject> getInputHObjs() {
    LOG.debug("==> ReadTableEvent.getInputHObjs()");
    List<HivePrivilegeObject> ret = new ArrayList<>();
    PreReadTableEvent preReadTableEvent = (PreReadTableEvent) preEventContext;
    String dbName = preReadTableEvent.getTable().getDbName();
    Table table = preReadTableEvent.getTable();
    ret.add(getHivePrivilegeObject(table));
    LOG.debug("<== ReadTableEvent.getInputHObjs()" + ret);
    return ret;
}
Also used : PreReadTableEvent(org.apache.hadoop.hive.metastore.events.PreReadTableEvent) Table(org.apache.hadoop.hive.metastore.api.Table) ArrayList(java.util.ArrayList) HivePrivilegeObject(org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject)

Aggregations

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