@Override protected void initializeOp(Configuration hconf) throws HiveException { super.initializeOp(hconf); try { heartbeatInterval = HiveConf.getIntVar(hconf, HiveConf.ConfVars.HIVESENDHEARTBEAT); conditionEvaluator.init(hconf); } catch (Throwable e) { throw new HiveException(e); } if (conditionEvaluator instanceof ConstantVectorExpression) { ConstantVectorExpression cve = (ConstantVectorExpression) this.conditionEvaluator; if (cve.getLongValue() == 1) { filterMode = 1; } else { filterMode = -1; } } temporarySelected = new int [VectorizedRowBatch.DEFAULT_SIZE]; }
@Override protected void initializeOp(Configuration hconf) throws HiveException { super.initializeOp(hconf); VectorExpression.doTransientInit(predicateExpression); try { heartbeatInterval = HiveConf.getIntVar(hconf, HiveConf.ConfVars.HIVESENDHEARTBEAT); predicateExpression.init(hconf); } catch (Throwable e) { throw new HiveException(e); } if (predicateExpression instanceof ConstantVectorExpression) { ConstantVectorExpression cve = (ConstantVectorExpression) this.predicateExpression; if (cve.getLongValue() == 1) { filterMode = 1; } else { filterMode = -1; } } temporarySelected = new int [VectorizedRowBatch.DEFAULT_SIZE]; }
@Override protected Collection<Future<?>> initializeOp(Configuration hconf) throws HiveException { Collection<Future<?>> result = super.initializeOp(hconf); try { heartbeatInterval = HiveConf.getIntVar(hconf, HiveConf.ConfVars.HIVESENDHEARTBEAT); } catch (Throwable e) { throw new HiveException(e); } if (conditionEvaluator instanceof ConstantVectorExpression) { ConstantVectorExpression cve = (ConstantVectorExpression) this.conditionEvaluator; if (cve.getLongValue() == 1) { filterMode = 1; } else { filterMode = -1; } } temporarySelected = new int [VectorizedRowBatch.DEFAULT_SIZE]; return result; }