public class HiveUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HiveUtils.Field |
Constructor and Description |
---|
HiveUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
convertHiveToPig(Object obj,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector oi,
boolean[] includedColumns) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
createObjectInspector(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo info) |
static org.apache.hadoop.hive.serde2.objectinspector.ConstantObjectInspector |
getConstantObjectInspector(Object obj) |
static Object |
getPrimaryFromHive(Object obj,
org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector poi) |
static ResourceSchema.ResourceFieldSchema |
getResourceFieldSchema(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo ti) |
static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo |
getTypeInfo(ResourceSchema.ResourceFieldSchema fs) |
public static Object convertHiveToPig(Object obj, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector oi, boolean[] includedColumns)
public static Object getPrimaryFromHive(Object obj, org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector poi)
public static ResourceSchema.ResourceFieldSchema getResourceFieldSchema(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo ti) throws IOException
IOException
public static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo getTypeInfo(ResourceSchema.ResourceFieldSchema fs) throws IOException
IOException
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector createObjectInspector(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo info)
public static org.apache.hadoop.hive.serde2.objectinspector.ConstantObjectInspector getConstantObjectInspector(Object obj)
Copyright © 2007-2017 The Apache Software Foundation