Search in sources :

Example 1 with VectorTableScanDesc

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;
}
Also used : TableScanDesc(org.apache.hadoop.hive.ql.plan.TableScanDesc) VectorTableScanDesc(org.apache.hadoop.hive.ql.plan.VectorTableScanDesc) VectorTableScanDesc(org.apache.hadoop.hive.ql.plan.VectorTableScanDesc)

Aggregations

TableScanDesc (org.apache.hadoop.hive.ql.plan.TableScanDesc)1 VectorTableScanDesc (org.apache.hadoop.hive.ql.plan.VectorTableScanDesc)1