@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 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 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[] 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)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.