public class VectorAssignRow extends Object
Constructor and Description |
---|
VectorAssignRow() |
Modifier and Type | Method and Description |
---|---|
void |
assignConvertRowColumn(VectorizedRowBatch batch,
int batchIndex,
int logicalColumnIndex,
Object object)
Convert row's column object and then assign it the ColumnVector at batchIndex
in the VectorizedRowBatch.
|
void |
assignRow(VectorizedRowBatch batch,
int batchIndex,
List<Object> standardObjects,
int columnCount) |
void |
assignRow(VectorizedRowBatch batch,
int batchIndex,
Object[] objects) |
void |
assignRowColumn(VectorizedRowBatch batch,
int batchIndex,
int logicalColumnIndex,
Object object)
Assign a row's column object to the ColumnVector at batchIndex in the VectorizedRowBatch.
|
void |
init(List<String> typeNames) |
void |
init(StructObjectInspector structObjectInspector) |
void |
init(StructObjectInspector structObjectInspector,
List<Integer> projectedColumns) |
int |
initConversion(TypeInfo[] sourceTypeInfos,
TypeInfo[] targetTypeInfos,
boolean[] columnsToIncludeTruncated)
Initialize for conversion from a provided (source) data types to the target data types
desired in the VectorizedRowBatch.
|
public void init(StructObjectInspector structObjectInspector, List<Integer> projectedColumns) throws HiveException
HiveException
public void init(StructObjectInspector structObjectInspector) throws HiveException
HiveException
public void init(List<String> typeNames) throws HiveException
HiveException
public int initConversion(TypeInfo[] sourceTypeInfos, TypeInfo[] targetTypeInfos, boolean[] columnsToIncludeTruncated)
sourceTypeInfos
- targetTypeInfos
- columnsToIncludeTruncated
- Flag array indicating which columns are to be included.
"Truncated" because all false entries on the end of the array have been
eliminated.public void assignRowColumn(VectorizedRowBatch batch, int batchIndex, int logicalColumnIndex, Object object)
batch
- batchIndex
- logicalColumnIndex
- object
- The row column object whose type is the target data type.public void assignConvertRowColumn(VectorizedRowBatch batch, int batchIndex, int logicalColumnIndex, Object object)
batch
- batchIndex
- logicalColumnIndex
- object
- The row column object whose type is the VectorAssignRow.initConversion
source data type.public void assignRow(VectorizedRowBatch batch, int batchIndex, Object[] objects)
public void assignRow(VectorizedRowBatch batch, int batchIndex, List<Object> standardObjects, int columnCount)
Copyright © 2016 The Apache Software Foundation. All rights reserved.