org.apache.hadoop.hive.serde2.avro
Class AvroGenericRecordWritable
java.lang.Object
org.apache.hadoop.hive.serde2.avro.AvroGenericRecordWritable
public class AvroGenericRecordWritable
- extends Object
Wrapper around an Avro GenericRecord. Necessary because Hive's deserializer
will happily deserialize any object - as long as it's a writable.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvroGenericRecordWritable
public AvroGenericRecordWritable()
AvroGenericRecordWritable
public AvroGenericRecordWritable(org.apache.avro.generic.GenericRecord record)
getRecord
public org.apache.avro.generic.GenericRecord getRecord()
setRecord
public void setRecord(org.apache.avro.generic.GenericRecord record)
write
public void write(DataOutput out)
throws IOException
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation