org.apache.hadoop.hive.serde2.dynamic_type
Class DynamicSerDeStructBase

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.dynamic_type.SimpleNode
      extended by org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDeSimpleNode
          extended by org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDeTypeBase
              extended by org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDeStructBase
All Implemented Interfaces:
Serializable, Node
Direct Known Subclasses:
DynamicSerDeFunction, DynamicSerDeStruct

public abstract class DynamicSerDeStructBase
extends DynamicSerDeTypeBase
implements Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDeSimpleNode
fieldid, name, thrift_mode
 
Fields inherited from class org.apache.hadoop.hive.serde2.dynamic_type.SimpleNode
children, id, parent, parser
 
Constructor Summary
DynamicSerDeStructBase(int i)
           
DynamicSerDeStructBase(thrift_grammar p, int i)
           
 
Method Summary
 Object deserialize(Object reuse, com.facebook.thrift.protocol.TProtocol iprot)
           
abstract  DynamicSerDeFieldList getFieldList()
           
 Class getRealType()
           
 void initialize()
           
 boolean isPrimitive()
           
 void serialize(Object o, ObjectInspector oi, com.facebook.thrift.protocol.TProtocol oprot)
          serialize The way to serialize a Thrift "table" which in thrift land is really a function and thus this class's name.
 
Methods inherited from class org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDeTypeBase
get, getType, isList, isMap, toString
 
Methods inherited from class org.apache.hadoop.hive.serde2.dynamic_type.SimpleNode
dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicSerDeStructBase

public DynamicSerDeStructBase(int i)

DynamicSerDeStructBase

public DynamicSerDeStructBase(thrift_grammar p,
                              int i)
Method Detail

getFieldList

public abstract DynamicSerDeFieldList getFieldList()

initialize

public void initialize()
Overrides:
initialize in class DynamicSerDeTypeBase

isPrimitive

public boolean isPrimitive()
Overrides:
isPrimitive in class DynamicSerDeTypeBase

getRealType

public Class getRealType()
Overrides:
getRealType in class DynamicSerDeTypeBase

deserialize

public Object deserialize(Object reuse,
                          com.facebook.thrift.protocol.TProtocol iprot)
                   throws SerDeException,
                          com.facebook.thrift.TException,
                          IllegalAccessException
Specified by:
deserialize in class DynamicSerDeTypeBase
Throws:
SerDeException
com.facebook.thrift.TException
IllegalAccessException

serialize

public void serialize(Object o,
                      ObjectInspector oi,
                      com.facebook.thrift.protocol.TProtocol oprot)
               throws com.facebook.thrift.TException,
                      SerDeException,
                      NoSuchFieldException,
                      IllegalAccessException
serialize The way to serialize a Thrift "table" which in thrift land is really a function and thus this class's name.

Specified by:
serialize in class DynamicSerDeTypeBase
Parameters:
o - - this list should be in the order of the function's params for now. If we wanted to remove this requirement, we'd need to make it a List> with the String being the field name.
Throws:
com.facebook.thrift.TException
SerDeException
NoSuchFieldException
IllegalAccessException


Copyright © 2009 The Apache Software Foundation