@Override
    public void postAnalyze(HiveSemanticAnalyzerHookContext context,
        List<Task<?>> rootTasks) throws SemanticException {
      readEntities = context.getInputs();
    }
Hook used in the test to capture the set of ReadEntities
ql/src/test/org/apache/hadoop/hive/ql/plan/TestReadEntityDirect.java