org.apache.hadoop.hive.serde2
Class NullStructSerDe.NullStructSerDeObjectInspector

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector
      extended by org.apache.hadoop.hive.serde2.NullStructSerDe.NullStructSerDeObjectInspector
All Implemented Interfaces:
Cloneable, ObjectInspector
Enclosing class:
NullStructSerDe

public static class NullStructSerDe.NullStructSerDeObjectInspector
extends StructObjectInspector

A object inspector for null struct serde.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Constructor Summary
NullStructSerDe.NullStructSerDeObjectInspector()
           
 
Method Summary
 List<org.apache.hadoop.hive.serde2.NullStructSerDe.NullStructField> getAllStructFieldRefs()
          Returns all the fields.
 ObjectInspector.Category getCategory()
          An ObjectInspector must inherit from one of the following interfaces if getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST: ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.
 Object getStructFieldData(Object data, StructField fieldRef)
          returns null for data = null.
 StructField getStructFieldRef(String fieldName)
          Look up a field.
 List<Object> getStructFieldsDataAsList(Object data)
          returns null for data = null.
 String getTypeName()
          Returns the name of the data type that is inspected by this ObjectInspector.
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector
isSettable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullStructSerDe.NullStructSerDeObjectInspector

public NullStructSerDe.NullStructSerDeObjectInspector()
Method Detail

getTypeName

public String getTypeName()
Description copied from interface: ObjectInspector
Returns the name of the data type that is inspected by this ObjectInspector. This is used to display the type information to the user. For primitive types, the type name is standardized. For other types, the type name can be something like "list", "map", java class names, or user-defined type names similar to typedef.


getCategory

public ObjectInspector.Category getCategory()
Description copied from interface: ObjectInspector
An ObjectInspector must inherit from one of the following interfaces if getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST: ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.


getStructFieldRef

public StructField getStructFieldRef(String fieldName)
Description copied from class: StructObjectInspector
Look up a field.

Specified by:
getStructFieldRef in class StructObjectInspector

getAllStructFieldRefs

public List<org.apache.hadoop.hive.serde2.NullStructSerDe.NullStructField> getAllStructFieldRefs()
Description copied from class: StructObjectInspector
Returns all the fields.

Specified by:
getAllStructFieldRefs in class StructObjectInspector

getStructFieldData

public Object getStructFieldData(Object data,
                                 StructField fieldRef)
Description copied from class: StructObjectInspector
returns null for data = null.

Specified by:
getStructFieldData in class StructObjectInspector

getStructFieldsDataAsList

public List<Object> getStructFieldsDataAsList(Object data)
Description copied from class: StructObjectInspector
returns null for data = null.

Specified by:
getStructFieldsDataAsList in class StructObjectInspector


Copyright © 2012 The Apache Software Foundation