org.apache.hadoop.hive.serde2.objectinspector
Class ObjectInspectorFactory
java.lang.Object
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorFactory
public class ObjectInspectorFactory
- extends Object
ObjectInspectorFactory is the primary way to create new ObjectInspector instances.
SerDe classes should call the static functions in this library to create an ObjectInspector
to return to the caller of SerDe2.getObjectInspector().
The reason of having caches here is that ObjectInspector is because ObjectInspectors do
not have an internal state - so ObjectInspectors with the same construction parameters should
result in exactly the same ObjectInspector.
Method Summary |
static LazyListObjectInspector |
getLazySimpleListObjectInspector(ObjectInspector listElementObjectInspector,
byte separator,
org.apache.hadoop.io.Text nullSequence)
|
static LazyMapObjectInspector |
getLazySimpleMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector,
byte itemSeparator,
byte keyValueSeparator,
org.apache.hadoop.io.Text nullSequence)
|
static LazySimpleStructObjectInspector |
getLazySimpleStructObjectInspector(List<String> structFieldNames,
List<ObjectInspector> structFieldObjectInspectors,
byte separator,
org.apache.hadoop.io.Text nullSequence,
boolean lastColumnTakesRest)
|
static ObjectInspector |
getReflectionObjectInspector(Type t,
ObjectInspectorFactory.ObjectInspectorOptions options)
|
static org.apache.hadoop.hive.serde2.objectinspector.StandardListObjectInspector |
getStandardListObjectInspector(ObjectInspector listElementObjectInspector)
|
static org.apache.hadoop.hive.serde2.objectinspector.StandardMapObjectInspector |
getStandardMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector)
|
static org.apache.hadoop.hive.serde2.objectinspector.StandardPrimitiveObjectInspector |
getStandardPrimitiveObjectInspector(Class<?> c)
|
static StandardStructObjectInspector |
getStandardStructObjectInspector(List<String> structFieldNames,
List<ObjectInspector> structFieldObjectInspectors)
|
static UnionStructObjectInspector |
getUnionStructObjectInspector(List<StructObjectInspector> structObjectInspectors)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectInspectorFactory
public ObjectInspectorFactory()
getReflectionObjectInspector
public static ObjectInspector getReflectionObjectInspector(Type t,
ObjectInspectorFactory.ObjectInspectorOptions options)
getStandardPrimitiveObjectInspector
public static org.apache.hadoop.hive.serde2.objectinspector.StandardPrimitiveObjectInspector getStandardPrimitiveObjectInspector(Class<?> c)
getStandardListObjectInspector
public static org.apache.hadoop.hive.serde2.objectinspector.StandardListObjectInspector getStandardListObjectInspector(ObjectInspector listElementObjectInspector)
getStandardMapObjectInspector
public static org.apache.hadoop.hive.serde2.objectinspector.StandardMapObjectInspector getStandardMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector)
getStandardStructObjectInspector
public static StandardStructObjectInspector getStandardStructObjectInspector(List<String> structFieldNames,
List<ObjectInspector> structFieldObjectInspectors)
getLazySimpleStructObjectInspector
public static LazySimpleStructObjectInspector getLazySimpleStructObjectInspector(List<String> structFieldNames,
List<ObjectInspector> structFieldObjectInspectors,
byte separator,
org.apache.hadoop.io.Text nullSequence,
boolean lastColumnTakesRest)
getLazySimpleListObjectInspector
public static LazyListObjectInspector getLazySimpleListObjectInspector(ObjectInspector listElementObjectInspector,
byte separator,
org.apache.hadoop.io.Text nullSequence)
getLazySimpleMapObjectInspector
public static LazyMapObjectInspector getLazySimpleMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector,
byte itemSeparator,
byte keyValueSeparator,
org.apache.hadoop.io.Text nullSequence)
getUnionStructObjectInspector
public static UnionStructObjectInspector getUnionStructObjectInspector(List<StructObjectInspector> structObjectInspectors)
Copyright © 2009 The Apache Software Foundation