com.cloudera.crunch.type.avro
Class ReflectDataFactory
java.lang.Object
com.cloudera.crunch.type.avro.ReflectDataFactory
public class ReflectDataFactory
- extends Object
A Factory class for constructing Avro reflection-related objects.
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectDataFactory
public ReflectDataFactory()
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. All Rights Reserved.