org.apache.hadoop.hive.ql.exec.vector
Class VectorizedBatchUtil
java.lang.Object
org.apache.hadoop.hive.ql.exec.vector.VectorizedBatchUtil
public class VectorizedBatchUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VectorizedBatchUtil
public VectorizedBatchUtil()
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 objectoi - Object insepector for that rowrowIndex - index to which the row should be added to batchbatch - Vectorized batch to which the row is added at rowIndex
- Throws:
HiveException
Copyright © 2014 The Apache Software Foundation. All rights reserved.