use of org.apache.hadoop.hive.ql.plan.VectorTableScanDesc in project hive by apache.
the class Vectorizer method vectorizeTableScanOperator.
public static Operator<? extends OperatorDesc> vectorizeTableScanOperator(Operator<? extends OperatorDesc> tableScanOp, VectorizationContext vContext) throws HiveException {
TableScanDesc tableScanDesc = (TableScanDesc) tableScanOp.getConf();
VectorTableScanDesc vectorTableScanDesc = new VectorTableScanDesc();
tableScanDesc.setVectorDesc(vectorTableScanDesc);
vectorTableScanDesc.setProjectedOutputColumns(ArrayUtils.toPrimitive(vContext.getProjectedColumns().toArray(new Integer[0])));
return tableScanOp;
}
Aggregations