public abstract class AbstractAvroReader<O> extends AvroIO<AbstractAvroReader> implements AvroReader<O>
| Constructor and Description |
|---|
AbstractAvroReader() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getRecordName()
Return the name of this record
|
protected String |
getRecordNameSpace()
Return the namespace of this record
|
protected <C extends Collection<E>,E> |
readArray(AbstractAvroReader<E> reader,
C collection,
org.apache.avro.io.Decoder in)
Read an array that contains records into collection
|
protected <K,V> Map<K,V> |
readMap(com.google.common.base.Function<String,K> keyFunction,
AbstractAvroReader<V> reader,
org.apache.avro.io.Decoder in) |
protected <K> gnu.trove.map.TObjectDoubleMap<K> |
readMap(com.google.common.base.Function<String,K> keyFunction,
org.apache.avro.io.Decoder in) |
protected <K,V> Map<K,V> |
readMap(com.google.common.base.Function<String,K> keyFunction,
com.google.common.base.Function<org.apache.avro.io.Decoder,V> valueFunction,
org.apache.avro.io.Decoder in) |
protected <C> com.google.common.base.Optional<C> |
readOptional(AbstractAvroReader<C> reader,
org.apache.avro.io.Decoder in)
Read an union of C and null and return a Optional
|
protected <C extends Collection<String>> |
readStringArray(C collection,
org.apache.avro.io.Decoder in)
Read an the String's from an array into the provided collection.
|
<C> C |
readUnion(Class<C> recordSuperclass,
org.apache.avro.io.Decoder in)
Read a union
|
protected <C> void |
readUnionArray(Class<C> recordSuperclass,
Collection<C> collection,
org.apache.avro.io.Decoder in)
Read an array that contains unions of classes that have recordSuperclass as a superclass
|
createEnumSchema, createRecordFields, createSchema, createSchemaField, createUnionSchema, createUnionSchema, getRecordDoc, getUnion, registerUnion, rewriteNameSpaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadcreateSchema, getObjectClassprotected String getRecordName()
AvroIOgetRecordName in class AvroIO<AbstractAvroReader>protected String getRecordNameSpace()
AvroIOgetRecordNameSpace in class AvroIO<AbstractAvroReader>public <C> C readUnion(Class<C> recordSuperclass, org.apache.avro.io.Decoder in) throws IOException
C - the class of the object to be readrecordSuperclass - the super class of the unionin - the decoderIOExceptionprotected <C> void readUnionArray(Class<C> recordSuperclass, Collection<C> collection, org.apache.avro.io.Decoder in) throws IOException
C - the record superclassrecordSuperclass - the superclass of the unioncollection - the collection to read the array intoin - the decoderIOExceptionprotected <C extends Collection<E>,E> C readArray(AbstractAvroReader<E> reader, C collection, org.apache.avro.io.Decoder in) throws IOException
E - the record classreader - the readercollection - the collectionin - the decoderIOExceptionprotected <C extends Collection<String>> C readStringArray(C collection, org.apache.avro.io.Decoder in) throws IOException
in - the decodercollection - the collectionIOExceptionprotected <C> com.google.common.base.Optional<C> readOptional(AbstractAvroReader<C> reader, org.apache.avro.io.Decoder in) throws IOException
C - the record classreader - the reader if the value is not nullin - the decoderIOExceptionprotected <K,V> Map<K,V> readMap(com.google.common.base.Function<String,K> keyFunction, com.google.common.base.Function<org.apache.avro.io.Decoder,V> valueFunction, org.apache.avro.io.Decoder in) throws IOException
IOExceptionprotected <K> gnu.trove.map.TObjectDoubleMap<K> readMap(com.google.common.base.Function<String,K> keyFunction, org.apache.avro.io.Decoder in) throws IOException
IOExceptionprotected <K,V> Map<K,V> readMap(com.google.common.base.Function<String,K> keyFunction, AbstractAvroReader<V> reader, org.apache.avro.io.Decoder in) throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.