org.apache.hadoop.hive.ql.exec.vector
Class VectorizedBatchUtil

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.vector.VectorizedBatchUtil

public class VectorizedBatchUtil
extends Object


Constructor Summary
VectorizedBatchUtil()
           
 
Method Summary
static void addRowToBatch(Object row, StructObjectInspector oi, int rowIndex, VectorizedRowBatch batch, org.apache.hadoop.io.DataOutputBuffer buffer)
          Iterates thru all the columns in a given row and populates the batch
static void setNoNullFields(VectorizedRowBatch batch)
          Iterates thru all the column vectors and sets noNull to specified value.
static void setNullColIsNullValue(ColumnVector cv, int rowIndex)
          Sets the IsNull value for ColumnVector at specified index
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorizedBatchUtil

public VectorizedBatchUtil()
Method Detail

setNullColIsNullValue

public static void setNullColIsNullValue(ColumnVector cv,
                                         int rowIndex)
Sets the IsNull value for ColumnVector at specified index

Parameters:
cv -
rowIndex -

setNoNullFields

public static void setNoNullFields(VectorizedRowBatch batch)
Iterates thru all the column vectors and sets noNull to specified value.

Parameters:
batch - Batch on which noNull is set

addRowToBatch

public static void addRowToBatch(Object row,
                                 StructObjectInspector oi,
                                 int rowIndex,
                                 VectorizedRowBatch batch,
                                 org.apache.hadoop.io.DataOutputBuffer buffer)
                          throws HiveException
Iterates thru all the columns in a given row and populates the batch

Parameters:
row - Deserialized row object
oi - Object insepector for that row
rowIndex - index to which the row should be added to batch
batch - Vectorized batch to which the row is added at rowIndex
Throws:
HiveException


Copyright © 2014 The Apache Software Foundation. All rights reserved.