public class HiveUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HiveUtils.Field |
Constructor and Description |
---|
HiveUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
convertHiveToPig(java.lang.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(java.lang.Object obj) |
static org.apache.hadoop.hive.ql.io.sarg.PredicateLeaf.Type |
getDataTypeForSearchArgs(byte dataType) |
static java.lang.Object |
getPrimaryFromHive(java.lang.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 java.lang.Object convertHiveToPig(java.lang.Object obj, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector oi, boolean[] includedColumns)
public static java.lang.Object getPrimaryFromHive(java.lang.Object obj, org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector poi)
public static ResourceSchema.ResourceFieldSchema getResourceFieldSchema(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo ti) throws java.io.IOException
java.io.IOException
public static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo getTypeInfo(ResourceSchema.ResourceFieldSchema fs) throws java.io.IOException
java.io.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(java.lang.Object obj)
public static org.apache.hadoop.hive.ql.io.sarg.PredicateLeaf.Type getDataTypeForSearchArgs(byte dataType)
Copyright © 2007-2017 The Apache Software Foundation