@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)
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(Class clazz) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getObjectInspector(DataType flinkType)
Get Hive
ObjectInspector for a Flink TypeInformation . |
static Object |
toFlinkObject(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector,
Object data)
Converts a Hive object to Flink object with an ObjectInspector.
|
static DataType |
toFlinkType(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector[] |
toInspectors(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(Object[] args, DataType[] argTypes)
public static HiveObjectConversion getConversion(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector, LogicalType dataType)
public static Object toFlinkObject(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector, Object data)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getObjectInspector(Class clazz)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getObjectInspector(DataType flinkType)
ObjectInspector
for a Flink TypeInformation
.public static DataType toFlinkType(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.