|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.serde2.lazy.objectinspector.LazyMapObjectInspector
public class LazyMapObjectInspector
LazyMapObjectInspector works on struct data that is stored in LazyStruct. Always use the ObjectInspectorFactory to create new ObjectInspector objects, instead of directly creating an instance of this class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
|---|
ObjectInspector.Category |
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
|
| Constructor Summary | |
|---|---|
protected |
LazyMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector,
byte itemSeparator,
byte keyValueSeparator,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar)
Call ObjectInspectorFactory.getStandardListObjectInspector instead. |
| Method Summary | |
|---|---|
ObjectInspector.Category |
getCategory()
An ObjectInspector must inherit from one of the following interfaces if getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST: ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector. |
byte |
getEscapeChar()
|
byte |
getItemSeparator()
|
byte |
getKeyValueSeparator()
|
Map<?,?> |
getMap(Object data)
returns null for data = null. |
ObjectInspector |
getMapKeyObjectInspector()
|
int |
getMapSize(Object data)
returns -1 for NULL map. |
Object |
getMapValueElement(Object data,
Object key)
|
ObjectInspector |
getMapValueObjectInspector()
|
org.apache.hadoop.io.Text |
getNullSequence()
|
String |
getTypeName()
Returns the name of the data type that is inspected by this ObjectInspector. |
boolean |
isEscaped()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
protected LazyMapObjectInspector(ObjectInspector mapKeyObjectInspector,
ObjectInspector mapValueObjectInspector,
byte itemSeparator,
byte keyValueSeparator,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar)
| Method Detail |
|---|
public final ObjectInspector.Category getCategory()
ObjectInspector
getCategory in interface ObjectInspectorpublic String getTypeName()
ObjectInspector
getTypeName in interface ObjectInspectorpublic ObjectInspector getMapKeyObjectInspector()
getMapKeyObjectInspector in interface MapObjectInspectorpublic ObjectInspector getMapValueObjectInspector()
getMapValueObjectInspector in interface MapObjectInspector
public Object getMapValueElement(Object data,
Object key)
getMapValueElement in interface MapObjectInspectorpublic Map<?,?> getMap(Object data)
MapObjectInspector
getMap in interface MapObjectInspectorpublic int getMapSize(Object data)
MapObjectInspector
getMapSize in interface MapObjectInspectorpublic byte getItemSeparator()
public byte getKeyValueSeparator()
public org.apache.hadoop.io.Text getNullSequence()
public boolean isEscaped()
public byte getEscapeChar()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||