|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.serde2.avro.AvroSerDe
public class AvroSerDe
Read or write Avro data from Hive.
| Constructor Summary | |
|---|---|
AvroSerDe()
|
|
| Method Summary | |
|---|---|
Object |
deserialize(org.apache.hadoop.io.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()
Returns statistics collected when serializing |
Class<? extends org.apache.hadoop.io.Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method. |
void |
initialize(org.apache.hadoop.conf.Configuration configuration,
Properties properties)
Initialize the HiveDeserializer. |
org.apache.hadoop.io.Writable |
serialize(Object o,
ObjectInspector objectInspector)
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 AvroSerDe()
| Method Detail |
|---|
public void initialize(org.apache.hadoop.conf.Configuration configuration,
Properties properties)
throws SerDeException
Deserializer
initialize in interface Deserializerinitialize in interface Serializerconfiguration - System propertiesproperties - table properties
SerDeExceptionpublic Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
Serializer
getSerializedClass in interface Serializer
public org.apache.hadoop.io.Writable serialize(Object o,
ObjectInspector objectInspector)
throws SerDeException
Serializer
serialize in interface SerializerSerDeException
public Object deserialize(org.apache.hadoop.io.Writable writable)
throws SerDeException
Deserializer
deserialize in interface Deserializerwritable - The Writable object containing a serialized object
SerDeException
public ObjectInspector getObjectInspector()
throws SerDeException
Deserializer
getObjectInspector in interface DeserializerSerDeExceptionpublic SerDeStats getSerDeStats()
Deserializer
getSerDeStats in interface DeserializergetSerDeStats in interface Serializer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||