use of org.apache.hadoop.hive.ql.stats.ColStatsProcessor 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);
}
}
Aggregations