org.apache.hadoop.hive.serde2.dynamic_type
Class DynamicSerDeFieldList
java.lang.Object
org.apache.hadoop.hive.serde2.dynamic_type.SimpleNode
org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDeSimpleNode
org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDeFieldList
- All Implemented Interfaces:
- Serializable, Node
public class DynamicSerDeFieldList
- extends DynamicSerDeSimpleNode
- implements Serializable
- See Also:
- Serialized Form
Field Summary |
protected boolean[] |
fieldsPresent
|
protected boolean |
isRealThrift
Indicates whether fields can be out of order or missing. |
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
DynamicSerDeFieldList
public DynamicSerDeFieldList(int i)
DynamicSerDeFieldList
public DynamicSerDeFieldList(thrift_grammar p,
int i)
getChildren
public final DynamicSerDeField[] getChildren()
initialize
public void initialize()
getFieldByName
protected DynamicSerDeTypeBase getFieldByName(String fieldname)
deserialize
public Object deserialize(Object reuse,
com.facebook.thrift.protocol.TProtocol iprot)
throws SerDeException,
com.facebook.thrift.TException,
IllegalAccessException
- 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
- Throws:
com.facebook.thrift.TException
SerDeException
NoSuchFieldException
IllegalAccessException
toString
public String toString()
- Overrides:
toString
in class SimpleNode
Copyright © 2009 The Apache Software Foundation