Search in sources :

Example 1 with VectorDesc

use of org.apache.hadoop.hive.ql.plan.VectorDesc in project hive by apache.

the class OperatorFactory method getVectorOperator.

public static <T extends OperatorDesc> Operator<T> getVectorOperator(Class<? extends Operator<?>> opClass, CompilationOpContext cContext, T conf, VectorizationContext vContext) throws HiveException {
    try {
        VectorDesc vectorDesc = ((AbstractOperatorDesc) conf).getVectorDesc();
        vectorDesc.setVectorOp(opClass);
        Operator<T> op = (Operator<T>) opClass.getDeclaredConstructor(CompilationOpContext.class, VectorizationContext.class, OperatorDesc.class).newInstance(cContext, vContext, conf);
        return op;
    } catch (Exception e) {
        e.printStackTrace();
        throw new HiveException(e);
    }
}
Also used : SparkPartitionPruningSinkOperator(org.apache.hadoop.hive.ql.parse.spark.SparkPartitionPruningSinkOperator) VectorSparkPartitionPruningSinkOperator(org.apache.hadoop.hive.ql.exec.vector.VectorSparkPartitionPruningSinkOperator) VectorFilterOperator(org.apache.hadoop.hive.ql.exec.vector.VectorFilterOperator) VectorReduceSinkOperator(org.apache.hadoop.hive.ql.exec.vector.VectorReduceSinkOperator) VectorGroupByOperator(org.apache.hadoop.hive.ql.exec.vector.VectorGroupByOperator) VectorMapJoinOperator(org.apache.hadoop.hive.ql.exec.vector.VectorMapJoinOperator) VectorAppMasterEventOperator(org.apache.hadoop.hive.ql.exec.vector.VectorAppMasterEventOperator) VectorSelectOperator(org.apache.hadoop.hive.ql.exec.vector.VectorSelectOperator) VectorSMBMapJoinOperator(org.apache.hadoop.hive.ql.exec.vector.VectorSMBMapJoinOperator) VectorFileSinkOperator(org.apache.hadoop.hive.ql.exec.vector.VectorFileSinkOperator) VectorSparkHashTableSinkOperator(org.apache.hadoop.hive.ql.exec.vector.VectorSparkHashTableSinkOperator) VectorLimitOperator(org.apache.hadoop.hive.ql.exec.vector.VectorLimitOperator) AbstractOperatorDesc(org.apache.hadoop.hive.ql.plan.AbstractOperatorDesc) HiveException(org.apache.hadoop.hive.ql.metadata.HiveException) AbstractVectorDesc(org.apache.hadoop.hive.ql.plan.AbstractVectorDesc) VectorDesc(org.apache.hadoop.hive.ql.plan.VectorDesc) HiveException(org.apache.hadoop.hive.ql.metadata.HiveException)

Aggregations

VectorAppMasterEventOperator (org.apache.hadoop.hive.ql.exec.vector.VectorAppMasterEventOperator)1 VectorFileSinkOperator (org.apache.hadoop.hive.ql.exec.vector.VectorFileSinkOperator)1 VectorFilterOperator (org.apache.hadoop.hive.ql.exec.vector.VectorFilterOperator)1 VectorGroupByOperator (org.apache.hadoop.hive.ql.exec.vector.VectorGroupByOperator)1 VectorLimitOperator (org.apache.hadoop.hive.ql.exec.vector.VectorLimitOperator)1 VectorMapJoinOperator (org.apache.hadoop.hive.ql.exec.vector.VectorMapJoinOperator)1 VectorReduceSinkOperator (org.apache.hadoop.hive.ql.exec.vector.VectorReduceSinkOperator)1 VectorSMBMapJoinOperator (org.apache.hadoop.hive.ql.exec.vector.VectorSMBMapJoinOperator)1 VectorSelectOperator (org.apache.hadoop.hive.ql.exec.vector.VectorSelectOperator)1 VectorSparkHashTableSinkOperator (org.apache.hadoop.hive.ql.exec.vector.VectorSparkHashTableSinkOperator)1 VectorSparkPartitionPruningSinkOperator (org.apache.hadoop.hive.ql.exec.vector.VectorSparkPartitionPruningSinkOperator)1 HiveException (org.apache.hadoop.hive.ql.metadata.HiveException)1 SparkPartitionPruningSinkOperator (org.apache.hadoop.hive.ql.parse.spark.SparkPartitionPruningSinkOperator)1 AbstractOperatorDesc (org.apache.hadoop.hive.ql.plan.AbstractOperatorDesc)1 AbstractVectorDesc (org.apache.hadoop.hive.ql.plan.AbstractVectorDesc)1 VectorDesc (org.apache.hadoop.hive.ql.plan.VectorDesc)1