org.apache.hadoop.hive.serde2.objectinspector
Class ObjectInspectorConverters

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorConverters

public final class ObjectInspectorConverters
extends Object

ObjectInspectorConverters.


Nested Class Summary
static interface ObjectInspectorConverters.Converter
          A converter which will convert objects with one ObjectInspector to another.
static class ObjectInspectorConverters.IdentityConverter
          IdentityConverter.
static class ObjectInspectorConverters.ListConverter
          A converter class for List.
static class ObjectInspectorConverters.MapConverter
          A converter class for Map.
static class ObjectInspectorConverters.StructConverter
          A converter class for Struct.
 
Method Summary
static ObjectInspector getConvertedOI(ObjectInspector inputOI, ObjectInspector outputOI, boolean equalsCheck)
           
static ObjectInspectorConverters.Converter getConverter(ObjectInspector inputOI, ObjectInspector outputOI)
          Returns a converter that converts objects from one OI to another OI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConverter

public static ObjectInspectorConverters.Converter getConverter(ObjectInspector inputOI,
                                                               ObjectInspector outputOI)
Returns a converter that converts objects from one OI to another OI. The returned (converted) object belongs to this converter, so that it can be reused across different calls.


getConvertedOI

public static ObjectInspector getConvertedOI(ObjectInspector inputOI,
                                             ObjectInspector outputOI,
                                             boolean equalsCheck)


Copyright © 2012 The Apache Software Foundation