/** * Convert exprNodeDesc array to ObjectInspector array. */ static ArrayList<ObjectInspector> getWritableObjectInspector(ArrayList<ExprNodeDesc> exprs) { ArrayList<ObjectInspector> result = new ArrayList<ObjectInspector>(); for (ExprNodeDesc expr : exprs) { result.add(expr.getWritableObjectInspector()); } return result; }
/** * Convert exprNodeDesc array to ObjectInspector array. */ static ArrayList<ObjectInspector> getWritableObjectInspector(ArrayList<ExprNodeDesc> exprs) { ArrayList<ObjectInspector> result = new ArrayList<ObjectInspector>(); for (ExprNodeDesc expr : exprs) { result.add(expr.getWritableObjectInspector()); } return result; }
ExprNodeDesc reduceValue = reduceValues.get(pos); if (reduceValue != null) { if (reduceValue.getWritableObjectInspector() instanceof ConstantObjectInspector) {
ExprNodeDesc reduceValue = reduceValues.get(pos); if (reduceValue != null) { if (reduceValue.getWritableObjectInspector() instanceof ConstantObjectInspector) {
/** * Compiles the appropriate vector expression writer based on an expression info (ExprNodeDesc) */ public static VectorExpressionWriter genVectorExpressionWritable(ExprNodeDesc nodeDesc) throws HiveException { ObjectInspector objectInspector = nodeDesc.getWritableObjectInspector(); if (null == objectInspector) { objectInspector = TypeInfoUtils .getStandardWritableObjectInspectorFromTypeInfo(nodeDesc.getTypeInfo()); } if (null == objectInspector) { throw new HiveException(String.format( "Failed to initialize VectorExpressionWriter for expr: %s", nodeDesc.getExprString())); } return genVectorExpressionWritable(objectInspector); }
/** * Compiles the appropriate vector expression writer based on an expression info (ExprNodeDesc) */ public static VectorExpressionWriter genVectorExpressionWritable(ExprNodeDesc nodeDesc) throws HiveException { ObjectInspector objectInspector = nodeDesc.getWritableObjectInspector(); if (null == objectInspector) { objectInspector = TypeInfoUtils .getStandardWritableObjectInspectorFromTypeInfo(nodeDesc.getTypeInfo()); } if (null == objectInspector) { throw new HiveException(String.format( "Failed to initialize VectorExpressionWriter for expr: %s", nodeDesc.getExprString())); } return genVectorExpressionWritable(objectInspector); }
col.setObjectinspector(constant.getWritableObjectInspector());
final String tableAlias = null;//this column doesn't come from any table ColumnInfo colInfo = new ColumnInfo(getColumnInternalName(colListPos), exp.getWritableObjectInspector(), tableAlias, false); newOutputRR.put(colInfo.getTabAlias(), colInfo.getInternalName(), colInfo);
col.setObjectinspector(constant.getWritableObjectInspector());
final String tableAlias = null;//this column doesn't come from any table ColumnInfo colInfo = new ColumnInfo(getColumnInternalName(colListPos), exp.getWritableObjectInspector(), tableAlias, false); newOutputRR.put(colInfo.getTabAlias(), colInfo.getInternalName(), colInfo);
aggFnOIs.add(key.getWritableObjectInspector()); ArrayList<ExprNodeDesc> params = new ArrayList<ExprNodeDesc>(); params.add( ArrayList<ExprNodeDesc> bloomFilterFinalParams = new ArrayList<ExprNodeDesc>(); minFinalFnOIs.add(rsValueCols.get(0).getWritableObjectInspector()); maxFinalFnOIs.add(rsValueCols.get(1).getWritableObjectInspector()); bloomFilterFinalFnOIs.add(rsValueCols.get(2).getWritableObjectInspector());
aggFnOIs.add(key.getWritableObjectInspector()); ArrayList<ExprNodeDesc> params = new ArrayList<ExprNodeDesc>(); params.add( ArrayList<ExprNodeDesc> bloomFilterFinalParams = new ArrayList<ExprNodeDesc>(); minFinalFnOIs.add(rsValueCols.get(0).getWritableObjectInspector()); maxFinalFnOIs.add(rsValueCols.get(1).getWritableObjectInspector()); bloomFilterFinalFnOIs.add(rsValueCols.get(2).getWritableObjectInspector());
ObjectInspector[] childrenOIs = new ObjectInspector[children.size()]; for (int i = 0; i < childrenOIs.length; i++) { childrenOIs[i] = children.get(i).getWritableObjectInspector();
ObjectInspector[] childrenOIs = new ObjectInspector[children.size()]; for (int i = 0; i < childrenOIs.length; i++) { childrenOIs[i] = children.get(i).getWritableObjectInspector();
ObjectInspector[] argumentOIs = new ObjectInspector[compareCount]; ConstantObjectInspector constantObjectInspector = (ConstantObjectInspector) children.get(1).getWritableObjectInspector(); for (int i = 0; i < compareCount; i++) { argumentOIs[i] = constantObjectInspector;
long countDistincts = 0; long numNulls = 0; ObjectInspector oi = end.getWritableObjectInspector(); long numRows = parentStats.getNumRows();
List<ObjectInspector> parametersOIList = new ArrayList<ObjectInspector>(); for (ExprNodeDesc expr : paraList) { parametersOIList.add(expr.getWritableObjectInspector());
subQueryExpr.getWritableObjectInspector(), tabAlias, false); if (!out_rwsch.putWithCheck(tabAlias, colAlias, null, colInfo)) { throw new CalciteSemanticException("Cannot add column to RR: " + tabAlias + "." exp.getWritableObjectInspector(), tabAlias, false); colInfo.setSkewedCol((exp instanceof ExprNodeColumnDesc) ? ((ExprNodeColumnDesc) exp) .isSkewedCol() : false);
long countDistincts = 0; long numNulls = 0; ObjectInspector oi = end.getWritableObjectInspector(); long numRows = parentStats.getNumRows();
exp.getWritableObjectInspector(), tabAlias, false); colInfo.setSkewedCol((exp instanceof ExprNodeColumnDesc) ? ((ExprNodeColumnDesc) exp) .isSkewedCol() : false);