public class VectorExtractRow extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VectorExtractRow.OutputType |
| Constructor and Description |
|---|
VectorExtractRow() |
| Modifier and Type | Method and Description |
|---|---|
Function<Integer,Function<Integer,Object>> |
accessor(VectorizedRowBatch batch)
Returns an accessor function construct that can return data from a VRB batch instance.
|
void |
extractRow(VectorizedRowBatch batch,
int batchIndex,
Object[] objects)
Extract an row object from a VectorizedRowBatch at batchIndex.
|
void |
extractRow(VectorizedRowBatch batch,
int batchIndex,
Object[] objects,
VectorExtractRow.OutputType outputType)
Extract an row object from a VectorizedRowBatch at batchIndex.
|
Object |
extractRowColumn(ColumnVector colVector,
TypeInfo typeInfo,
ObjectInspector objectInspector,
int batchIndex) |
Object |
extractRowColumn(ColumnVector colVector,
TypeInfo typeInfo,
ObjectInspector objectInspector,
int batchIndex,
VectorExtractRow.OutputType outputType) |
int |
getCount() |
void |
init(StructObjectInspector structObjectInspector,
List<Integer> projectedColumns) |
void |
init(TypeInfo[] typeInfos) |
void |
init(TypeInfo[] typeInfos,
int[] projectedColumns) |
public void init(StructObjectInspector structObjectInspector, List<Integer> projectedColumns) throws HiveException
HiveExceptionpublic void init(TypeInfo[] typeInfos, int[] projectedColumns) throws HiveException
HiveExceptionpublic void init(TypeInfo[] typeInfos) throws HiveException
HiveExceptionpublic int getCount()
public Object extractRowColumn(ColumnVector colVector, TypeInfo typeInfo, ObjectInspector objectInspector, int batchIndex)
public Object extractRowColumn(ColumnVector colVector, TypeInfo typeInfo, ObjectInspector objectInspector, int batchIndex, VectorExtractRow.OutputType outputType)
public void extractRow(VectorizedRowBatch batch, int batchIndex, Object[] objects)
batch - VRB instance to lookup the row frombatchIndex - index of the row within this batchobjects - outputpublic void extractRow(VectorizedRowBatch batch, int batchIndex, Object[] objects, VectorExtractRow.OutputType outputType)
batch - VRB instance to lookup the row frombatchIndex - index of the row within this batchobjects - outputpublic Function<Integer,Function<Integer,Object>> accessor(VectorizedRowBatch batch)
batch - VRB instanceCopyright © 2024 The Apache Software Foundation. All rights reserved.