org.apache.hadoop.hive.serde2.objectinspector
Class ReflectionStructObjectInspector.MyField

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.ReflectionStructObjectInspector.MyField
All Implemented Interfaces:
StructField
Enclosing class:
ReflectionStructObjectInspector

public static class ReflectionStructObjectInspector.MyField
extends Object
implements StructField

MyField.


Field Summary
protected  Field field
           
protected  ObjectInspector fieldObjectInspector
           
 
Constructor Summary
ReflectionStructObjectInspector.MyField(Field field, ObjectInspector fieldObjectInspector)
           
 
Method Summary
 String getFieldComment()
          Get the comment for the field.
 String getFieldName()
          Get the name of the field.
 ObjectInspector getFieldObjectInspector()
          Get the ObjectInspector for the field.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

field

protected Field field

fieldObjectInspector

protected ObjectInspector fieldObjectInspector
Constructor Detail

ReflectionStructObjectInspector.MyField

public ReflectionStructObjectInspector.MyField(Field field,
                                               ObjectInspector fieldObjectInspector)
Method Detail

getFieldName

public String getFieldName()
Description copied from interface: StructField
Get the name of the field. The name should be always in lower-case.

Specified by:
getFieldName in interface StructField

getFieldObjectInspector

public ObjectInspector getFieldObjectInspector()
Description copied from interface: StructField
Get the ObjectInspector for the field.

Specified by:
getFieldObjectInspector in interface StructField

getFieldComment

public String getFieldComment()
Description copied from interface: StructField
Get the comment for the field. May be null if no comment provided.

Specified by:
getFieldComment in interface StructField

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 The Apache Software Foundation