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

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

protected static class StandardStructObjectInspector.MyField
extends Object
implements StructField


Field Summary
protected  String fieldComment
           
protected  int fieldID
           
protected  String fieldName
           
protected  ObjectInspector fieldObjectInspector
           
 
Constructor Summary
StandardStructObjectInspector.MyField(int fieldID, String fieldName, ObjectInspector fieldObjectInspector)
           
StandardStructObjectInspector.MyField(int fieldID, String fieldName, ObjectInspector fieldObjectInspector, String fieldComment)
           
 
Method Summary
 String getFieldComment()
          Get the comment for the field.
 int getFieldID()
           
 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

fieldID

protected int fieldID

fieldName

protected String fieldName

fieldObjectInspector

protected ObjectInspector fieldObjectInspector

fieldComment

protected String fieldComment
Constructor Detail

StandardStructObjectInspector.MyField

public StandardStructObjectInspector.MyField(int fieldID,
                                             String fieldName,
                                             ObjectInspector fieldObjectInspector)

StandardStructObjectInspector.MyField

public StandardStructObjectInspector.MyField(int fieldID,
                                             String fieldName,
                                             ObjectInspector fieldObjectInspector,
                                             String fieldComment)
Method Detail

getFieldID

public int getFieldID()

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 © 2012 The Apache Software Foundation