org.apache.hadoop.hive.serde2.lazy.objectinspector
Class LazyObjectInspectorFactory
java.lang.Object
org.apache.hadoop.hive.serde2.lazy.objectinspector.LazyObjectInspectorFactory
public class LazyObjectInspectorFactory
- 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 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,
boolean escaped,
byte escapeChar)
|
static LazyMapObjectInspector |
getLazySimpleMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector,
byte itemSeparator,
byte keyValueSeparator,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar)
|
static LazySimpleStructObjectInspector |
getLazySimpleStructObjectInspector(List<String> structFieldNames,
List<ObjectInspector> structFieldObjectInspectors,
byte separator,
org.apache.hadoop.io.Text nullSequence,
boolean lastColumnTakesRest,
boolean escaped,
byte escapeChar)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyObjectInspectorFactory
public LazyObjectInspectorFactory()
getLazySimpleStructObjectInspector
public static LazySimpleStructObjectInspector getLazySimpleStructObjectInspector(List<String> structFieldNames,
List<ObjectInspector> structFieldObjectInspectors,
byte separator,
org.apache.hadoop.io.Text nullSequence,
boolean lastColumnTakesRest,
boolean escaped,
byte escapeChar)
getLazySimpleListObjectInspector
public static LazyListObjectInspector getLazySimpleListObjectInspector(ObjectInspector listElementObjectInspector,
byte separator,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar)
getLazySimpleMapObjectInspector
public static LazyMapObjectInspector getLazySimpleMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector,
byte itemSeparator,
byte keyValueSeparator,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar)
Copyright © 2009 The Apache Software Foundation