public final class VectorExpressionWriterFactory extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
VectorExpressionWriterFactory.ListOIDClosure |
static interface |
VectorExpressionWriterFactory.SingleOIDClosure
A poor man Java closure.
|
Constructor and Description |
---|
VectorExpressionWriterFactory() |
Modifier and Type | Method and Description |
---|---|
static VectorExpressionWriter |
genVectorExpressionWritable(ExprNodeDesc nodeDesc)
Compiles the appropriate vector expression writer based on an expression info (ExprNodeDesc)
|
static VectorExpressionWriter |
genVectorExpressionWritable(ObjectInspector fieldObjInspector)
Compiles the appropriate vector expression writer based on an expression info (ExprNodeDesc)
|
static VectorExpressionWriter[] |
genVectorStructExpressionWritables(StructObjectInspector oi)
Compiles the appropriate vector expression writers based on a struct object
inspector.
|
static VectorExpressionWriter[] |
getExpressionWriters(List<ExprNodeDesc> nodesDesc)
Helper function to create an array of writers from a list of expression descriptors.
|
static VectorExpressionWriter[] |
getExpressionWriters(StructObjectInspector objInspector)
Returns
VectorExpressionWriter objects for the fields in the given
object inspector. |
static VectorExpressionWriter[] |
getSettableExpressionWriters(SettableStructObjectInspector objInspector) |
static void |
processVectorExpressions(List<ExprNodeDesc> nodesDesc,
List<String> columnNames,
VectorExpressionWriterFactory.SingleOIDClosure closure)
Creates the value writers for a column vector expression list.
|
static void |
processVectorExpressions(List<ExprNodeDesc> nodesDesc,
VectorExpressionWriterFactory.ListOIDClosure closure)
Creates the value writers for a column vector expression list.
|
static void |
processVectorInspector(StructObjectInspector structObjInspector,
VectorExpressionWriterFactory.SingleOIDClosure closure)
Creates the value writers for an struct object inspector.
|
public static VectorExpressionWriter genVectorExpressionWritable(ExprNodeDesc nodeDesc) throws HiveException
HiveException
public static VectorExpressionWriter genVectorExpressionWritable(ObjectInspector fieldObjInspector) throws HiveException
HiveException
public static VectorExpressionWriter[] genVectorStructExpressionWritables(StructObjectInspector oi) throws HiveException
HiveException
public static VectorExpressionWriter[] getExpressionWriters(List<ExprNodeDesc> nodesDesc) throws HiveException
HiveException
public static void processVectorExpressions(List<ExprNodeDesc> nodesDesc, List<String> columnNames, VectorExpressionWriterFactory.SingleOIDClosure closure) throws HiveException
HiveException
public static void processVectorExpressions(List<ExprNodeDesc> nodesDesc, VectorExpressionWriterFactory.ListOIDClosure closure) throws HiveException
HiveException
public static void processVectorInspector(StructObjectInspector structObjInspector, VectorExpressionWriterFactory.SingleOIDClosure closure) throws HiveException
HiveException
public static VectorExpressionWriter[] getExpressionWriters(StructObjectInspector objInspector) throws HiveException
VectorExpressionWriter
objects for the fields in the given
object inspector.objInspector
- HiveException
public static VectorExpressionWriter[] getSettableExpressionWriters(SettableStructObjectInspector objInspector) throws HiveException
HiveException
Copyright © 2017 The Apache Software Foundation. All rights reserved.