Constructor and Description |
---|
PigAvroDatumReader(org.apache.avro.Schema schema)
Construct where the writer's and reader's schemas are the same.
|
PigAvroDatumReader(org.apache.avro.Schema writer,
org.apache.avro.Schema reader)
Construct given writer's and reader's schema.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addToArray(Object array,
long pos,
Object e)
Called by the default implementation of
GenericDatumReader.readArray(java.lang.Object, org.apache.avro.Schema, org.apache.avro.io.ResolvingDecoder) to add a
value. |
protected Object |
createEnum(String symbol,
org.apache.avro.Schema schema)
Called to create an enum value.
|
protected Object |
newArray(Object old,
int size,
org.apache.avro.Schema schema)
Called to create new array instances.
|
protected Object |
newRecord(Object old,
org.apache.avro.Schema schema)
Called to create new record instances.
|
protected Object |
peekArray(Object array)
Called by the default implementation of
GenericDatumReader.readArray(java.lang.Object, org.apache.avro.Schema, org.apache.avro.io.ResolvingDecoder) to retrieve a
value from a reused instance. |
protected Object |
readBytes(Object old,
org.apache.avro.io.Decoder in)
Called to read byte arrays.
|
protected Object |
readFixed(Object old,
org.apache.avro.Schema expected,
org.apache.avro.io.Decoder in)
Called to read a fixed value.
|
protected Object |
readMap(Object old,
org.apache.avro.Schema expected,
org.apache.avro.io.ResolvingDecoder in)
Called to read a map instance.
|
protected Object |
readRecord(Object old,
org.apache.avro.Schema expected,
org.apache.avro.io.ResolvingDecoder in)
Called to read a record instance.
|
protected Object |
readString(Object old,
org.apache.avro.Schema expected,
org.apache.avro.io.Decoder in)
Called to read strings.
|
addToMap, createBytes, createFixed, createFixed, createString, findStringClass, getData, getExpected, getResolver, getSchema, newInstanceFromString, newMap, read, read, readArray, readBytes, readEnum, readField, readInt, readMapKey, readString, setExpected, setSchema, skip
public PigAvroDatumReader(org.apache.avro.Schema schema)
public PigAvroDatumReader(org.apache.avro.Schema writer, org.apache.avro.Schema reader) throws IOException
IOException
protected Object readRecord(Object old, org.apache.avro.Schema expected, org.apache.avro.io.ResolvingDecoder in) throws IOException
readRecord
in class org.apache.avro.generic.GenericDatumReader<Object>
IOException
protected Object readMap(Object old, org.apache.avro.Schema expected, org.apache.avro.io.ResolvingDecoder in) throws IOException
readMap
in class org.apache.avro.generic.GenericDatumReader<Object>
IOException
protected Object createEnum(String symbol, org.apache.avro.Schema schema)
createEnum
in class org.apache.avro.generic.GenericDatumReader<Object>
protected Object peekArray(Object array)
GenericDatumReader.readArray(java.lang.Object, org.apache.avro.Schema, org.apache.avro.io.ResolvingDecoder)
to retrieve a
value from a reused instance.peekArray
in class org.apache.avro.generic.GenericDatumReader<Object>
protected void addToArray(Object array, long pos, Object e)
GenericDatumReader.readArray(java.lang.Object, org.apache.avro.Schema, org.apache.avro.io.ResolvingDecoder)
to add a
value. Overridden to append to pig bag.addToArray
in class org.apache.avro.generic.GenericDatumReader<Object>
protected Object readFixed(Object old, org.apache.avro.Schema expected, org.apache.avro.io.Decoder in) throws IOException
readFixed
in class org.apache.avro.generic.GenericDatumReader<Object>
IOException
protected Object newRecord(Object old, org.apache.avro.Schema schema)
newRecord
in class org.apache.avro.generic.GenericDatumReader<Object>
protected Object newArray(Object old, int size, org.apache.avro.Schema schema)
newArray
in class org.apache.avro.generic.GenericDatumReader<Object>
protected Object readString(Object old, org.apache.avro.Schema expected, org.apache.avro.io.Decoder in) throws IOException
readString
in class org.apache.avro.generic.GenericDatumReader<Object>
IOException
protected Object readBytes(Object old, org.apache.avro.io.Decoder in) throws IOException
readBytes
in class org.apache.avro.generic.GenericDatumReader<Object>
IOException
Copyright © 2007-2017 The Apache Software Foundation