|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.io.orc.OrcSerde
public class OrcSerde
A serde class for ORC. It transparently passes the object to/from the ORC file reader/writer.
Constructor Summary | |
---|---|
OrcSerde()
|
Method Summary | |
---|---|
Object |
deserialize(Writable writable)
Deserialize an object out of a Writable blob. |
ObjectInspector |
getObjectInspector()
Get the object inspector that can be used to navigate through the internal structure of the Object returned from deserialize(...). |
SerDeStats |
getSerDeStats()
Always returns null, since serialized size doesn't make sense in the context of ORC files. |
Class<? extends Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method. |
void |
initialize(Configuration conf,
Properties table)
Initialize the HiveDeserializer. |
Writable |
serialize(Object realRow,
ObjectInspector inspector)
Serialize an object by navigating inside the Object with the ObjectInspector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrcSerde()
Method Detail |
---|
public void initialize(Configuration conf, Properties table)
Deserializer
initialize
in interface Deserializer
initialize
in interface Serializer
conf
- System propertiestable
- table propertiespublic Class<? extends Writable> getSerializedClass()
Serializer
getSerializedClass
in interface Serializer
public Writable serialize(Object realRow, ObjectInspector inspector)
Serializer
serialize
in interface Serializer
public Object deserialize(Writable writable) throws SerDeException
Deserializer
deserialize
in interface Deserializer
writable
- The Writable object containing a serialized object
SerDeException
public ObjectInspector getObjectInspector() throws SerDeException
Deserializer
getObjectInspector
in interface Deserializer
SerDeException
public SerDeStats getSerDeStats()
getSerDeStats
in interface Deserializer
getSerDeStats
in interface Serializer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |