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

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.DynamicSerDeFieldList
All Implemented Interfaces:
Serializable, Node

public class DynamicSerDeFieldList
extends DynamicSerDeSimpleNode
implements Serializable

DynamicSerDeFieldList.

See Also:
Serialized Form

Field Summary
protected  boolean[] fieldsPresent
           
protected  boolean isRealThrift
          Indicates whether fields can be out of order or missing.
 
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
DynamicSerDeFieldList(int i)
           
DynamicSerDeFieldList(thrift_grammar p, int i)
           
 
Method Summary
 Object deserialize(Object reuse, org.apache.thrift.protocol.TProtocol iprot)
           
 DynamicSerDeField[] getChildren()
           
protected  DynamicSerDeTypeBase getFieldByName(String fieldname)
           
 void initialize()
           
 void serialize(Object o, ObjectInspector oi, org.apache.thrift.protocol.TProtocol oprot)
           
 String 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
 

Field Detail

isRealThrift

protected boolean isRealThrift
Indicates whether fields can be out of order or missing. i.e., is it really real thrift serialization. This is used by dynamicserde to do some optimizations if it knows all the fields exist and are required and are serialized in order. For now, those optimizations are only done for DynamicSerDe serialized data so always set to false for now.


fieldsPresent

protected boolean[] fieldsPresent
Constructor Detail

DynamicSerDeFieldList

public DynamicSerDeFieldList(int i)

DynamicSerDeFieldList

public DynamicSerDeFieldList(thrift_grammar p,
                             int i)
Method Detail

getChildren

public final DynamicSerDeField[] getChildren()

initialize

public void initialize()

getFieldByName

protected DynamicSerDeTypeBase getFieldByName(String fieldname)

deserialize

public Object deserialize(Object reuse,
                          org.apache.thrift.protocol.TProtocol iprot)
                   throws SerDeException,
                          org.apache.thrift.TException,
                          IllegalAccessException
Throws:
SerDeException
org.apache.thrift.TException
IllegalAccessException

serialize

public void serialize(Object o,
                      ObjectInspector oi,
                      org.apache.thrift.protocol.TProtocol oprot)
               throws org.apache.thrift.TException,
                      SerDeException,
                      NoSuchFieldException,
                      IllegalAccessException
Throws:
org.apache.thrift.TException
SerDeException
NoSuchFieldException
IllegalAccessException

toString

public String toString()
Overrides:
toString in class SimpleNode


Copyright © 2011 The Apache Software Foundation