@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.
| 构造器和说明 |
|---|
HiveInspectors() |
| 限定符和类型 | 方法和说明 |
|---|---|
static HiveObjectConversion |
getConversion(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector,
org.apache.flink.table.types.logical.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(org.apache.flink.table.types.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,
org.apache.flink.table.types.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, org.apache.flink.table.types.DataType[] argTypes)
public static HiveObjectConversion getConversion(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector, org.apache.flink.table.types.logical.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(org.apache.flink.table.types.DataType flinkType)
ObjectInspector for a Flink DataType.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.