Search in sources :

Example 1 with VectorizationOperator

use of org.apache.hadoop.hive.ql.exec.vector.VectorizationOperator in project hive by apache.

the class HashTableLoader method init.

@Override
public void init(ExecMapperContext context, MapredContext mrContext, Configuration hconf, MapJoinOperator joinOp) {
    this.context = context;
    this.hconf = hconf;
    this.joinOp = joinOp;
    this.desc = joinOp.getConf();
    if (desc.getVectorMode() && HiveConf.getBoolVar(hconf, HiveConf.ConfVars.HIVE_VECTORIZATION_MAPJOIN_NATIVE_FAST_HASHTABLE_ENABLED)) {
        if (joinOp instanceof VectorizationOperator) {
            VectorMapJoinDesc vectorDesc = (VectorMapJoinDesc) ((VectorizationOperator) joinOp).getVectorDesc();
            useFastContainer = vectorDesc != null && vectorDesc.getHashTableImplementationType() == VectorMapJoinDesc.HashTableImplementationType.FAST;
        }
    }
}
Also used : VectorMapJoinDesc(org.apache.hadoop.hive.ql.plan.VectorMapJoinDesc) VectorizationOperator(org.apache.hadoop.hive.ql.exec.vector.VectorizationOperator)

Aggregations

VectorizationOperator (org.apache.hadoop.hive.ql.exec.vector.VectorizationOperator)1 VectorMapJoinDesc (org.apache.hadoop.hive.ql.plan.VectorMapJoinDesc)1