org.apache.hadoop.hive.serde2.objectinspector
Class StandardUnionObjectInspector.StandardUnion

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.StandardUnionObjectInspector.StandardUnion
All Implemented Interfaces:
UnionObject
Enclosing class:
StandardUnionObjectInspector

public static class StandardUnionObjectInspector.StandardUnion
extends Object
implements UnionObject


Field Summary
protected  Object object
           
protected  byte tag
           
 
Constructor Summary
StandardUnionObjectInspector.StandardUnion()
           
StandardUnionObjectInspector.StandardUnion(byte tag, Object object)
           
 
Method Summary
 Object getObject()
          Get the Object.
 byte getTag()
          Get the tag of the union.
 void setObject(Object o)
           
 void setTag(byte tag)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tag

protected byte tag

object

protected Object object
Constructor Detail

StandardUnionObjectInspector.StandardUnion

public StandardUnionObjectInspector.StandardUnion()

StandardUnionObjectInspector.StandardUnion

public StandardUnionObjectInspector.StandardUnion(byte tag,
                                                  Object object)
Method Detail

setObject

public void setObject(Object o)

setTag

public void setTag(byte tag)

getObject

public Object getObject()
Description copied from interface: UnionObject
Get the Object.

Specified by:
getObject in interface UnionObject
Returns:
The Object union is holding

getTag

public byte getTag()
Description copied from interface: UnionObject
Get the tag of the union.

Specified by:
getTag in interface UnionObject
Returns:
the tag byte

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 The Apache Software Foundation