Index: src/java/org/apache/hadoop/io/serializer/AvroSpecificSerialization.java
===================================================================
--- src/java/org/apache/hadoop/io/serializer/AvroSpecificSerialization.java	(revision 0)
+++ src/java/org/apache/hadoop/io/serializer/AvroSpecificSerialization.java	(revision 0)
@@ -0,0 +1,103 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.io.serializer;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+
+import org.apache.avro.Schema;
+import org.apache.avro.io.BinaryDecoder;
+import org.apache.avro.io.BinaryEncoder;
+import org.apache.avro.specific.SpecificDatumReader;
+import org.apache.avro.specific.SpecificDatumWriter;
+import org.apache.avro.specific.SpecificRecord;
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.conf.Configured;
+import org.apache.hadoop.util.ReflectionUtils;
+
+/**
+ * Serialization for Avro Specific classes.
+ *
+ */
+public class AvroSpecificSerialization extends Configured 
+  implements Serialization<SpecificRecord>{
+
+  public boolean accept(Class<?> c) {
+    return SpecificRecord.class.isAssignableFrom(c);
+  }
+
+  public Deserializer<SpecificRecord> getDeserializer(Class<SpecificRecord> c) {
+    return new AvroSpecificDeserializer(c, getConf());
+  }
+
+  public Serializer<SpecificRecord> getSerializer(Class<SpecificRecord> c) {
+    return new AvroSpecificSerializer();
+  }
+
+  class AvroSpecificSerializer extends Configured 
+    implements Serializer<SpecificRecord> {
+
+    private SpecificDatumWriter writer;
+    private BinaryEncoder encoder;
+
+    public void close() throws IOException {
+    }
+
+    public void open(OutputStream out) throws IOException {
+      writer = new SpecificDatumWriter();
+      encoder = new BinaryEncoder(out);
+    }
+
+    public void serialize(SpecificRecord t) throws IOException {
+      writer.setSchema(t.schema());
+      writer.write(t, encoder);
+    }
+  }
+
+  class AvroSpecificDeserializer extends Configured 
+    implements Deserializer<SpecificRecord> {
+
+    private Class<SpecificRecord> clazz;
+    private SpecificDatumReader reader;
+    private BinaryDecoder decoder;
+
+    AvroSpecificDeserializer(Class<SpecificRecord> clazz, Configuration conf) {
+      setConf(conf);
+      this.clazz = clazz;
+    }
+
+    public void close() throws IOException {
+    }
+
+    public SpecificRecord deserialize(SpecificRecord t) throws IOException {
+      if (t == null) {
+         t = ReflectionUtils.newInstance(clazz, getConf());
+      }
+      return (SpecificRecord) reader.read(t, decoder);
+    }
+
+    public void open(InputStream in) throws IOException {
+      decoder = new BinaryDecoder(in);
+      Schema schema = ReflectionUtils.newInstance(clazz, getConf()).schema();
+      reader = new SpecificDatumReader(schema);
+    }
+
+  }
+}
