org.apache.crunch.types.avro
Class ReflectDataFactory

java.lang.Object
  extended by org.apache.crunch.types.avro.ReflectDataFactory
Direct Known Subclasses:
ScalaReflectDataFactory

public class ReflectDataFactory
extends Object

A Factory class for constructing Avro reflection-related objects.


Constructor Summary
ReflectDataFactory()
           
 
Method Summary
<T> org.apache.avro.reflect.ReflectDatumReader<T>
getReader(org.apache.avro.Schema schema)
           
 org.apache.avro.reflect.ReflectData getReflectData()
           
<T> org.apache.avro.reflect.ReflectDatumWriter<T>
getWriter()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectDataFactory

public ReflectDataFactory()
Method Detail

getReflectData

public org.apache.avro.reflect.ReflectData getReflectData()

getReader

public <T> org.apache.avro.reflect.ReflectDatumReader<T> getReader(org.apache.avro.Schema schema)

getWriter

public <T> org.apache.avro.reflect.ReflectDatumWriter<T> getWriter()


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.