@Internal public class HiveInspectors extends Object
Hive ObjectInspector is a group of flexible APIs to inspect value in different data representation, and developers can extend those API as needed, so technically, object inspector supports arbitrary data type in java.
Constructor and Description |
---|
HiveInspectors() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector[] |
getArgInspectors(HiveShim hiveShim,
HiveFunctionArguments arguments)
Get object inspector for each function argument.
|
static HiveObjectConversion |
getConversion(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector,
LogicalType dataType,
HiveShim hiveShim)
Get conversion for converting Flink object to Hive object from an ObjectInspector and the
corresponding Flink DataType.
|
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getObjectInspector(DataType flinkType)
Get Hive
ObjectInspector for a Flink DataType . |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getObjectInspector(LogicalType flinkType)
Get Hive
ObjectInspector for a Flink LogicalType . |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getObjectInspector(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo type) |
static Object |
toFlinkObject(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector,
Object data,
HiveShim hiveShim)
Converts a Hive object to Flink object with an ObjectInspector.
|
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector[] |
toInspectors(HiveShim hiveShim,
Object[] args,
DataType[] argTypes)
Get an array of ObjectInspector from the give array of args and their types.
|
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector[] getArgInspectors(HiveShim hiveShim, HiveFunctionArguments arguments)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector[] toInspectors(HiveShim hiveShim, Object[] args, DataType[] argTypes)
public static HiveObjectConversion getConversion(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector, LogicalType dataType, HiveShim hiveShim)
public static Object toFlinkObject(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector, Object data, HiveShim hiveShim)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getObjectInspector(DataType flinkType)
ObjectInspector
for a Flink DataType
.public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getObjectInspector(LogicalType flinkType)
ObjectInspector
for a Flink LogicalType
.public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getObjectInspector(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo type)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.