Search in sources :

Example 1 with BasicStatsNoJobTask

use of org.apache.hadoop.hive.ql.stats.BasicStatsNoJobTask in project hive by apache.

the class StatsTask method initialize.

@Override
public void initialize(QueryState queryState, QueryPlan queryPlan, DriverContext ctx, CompilationOpContext opContext) {
    super.initialize(queryState, queryPlan, ctx, opContext);
    if (work.getBasicStatsWork() != null) {
        BasicStatsTask task = new BasicStatsTask(conf, work.getBasicStatsWork());
        task.followedColStats = work.hasColStats();
        processors.add(0, task);
    } else if (work.isFooterScan()) {
        BasicStatsNoJobTask t = new BasicStatsNoJobTask(conf, work.getBasicStatsNoJobWork());
        processors.add(0, t);
    }
    if (work.hasColStats()) {
        processors.add(new ColStatsProcessor(work.getColStats(), conf));
    }
    for (IStatsProcessor p : processors) {
        p.initialize(opContext);
    }
}
Also used : BasicStatsTask(org.apache.hadoop.hive.ql.stats.BasicStatsTask) IStatsProcessor(org.apache.hadoop.hive.ql.stats.IStatsProcessor) BasicStatsNoJobTask(org.apache.hadoop.hive.ql.stats.BasicStatsNoJobTask) ColStatsProcessor(org.apache.hadoop.hive.ql.stats.ColStatsProcessor)

Aggregations

BasicStatsNoJobTask (org.apache.hadoop.hive.ql.stats.BasicStatsNoJobTask)1 BasicStatsTask (org.apache.hadoop.hive.ql.stats.BasicStatsTask)1 ColStatsProcessor (org.apache.hadoop.hive.ql.stats.ColStatsProcessor)1 IStatsProcessor (org.apache.hadoop.hive.ql.stats.IStatsProcessor)1