Changes for PIG-3321
Review Request #11155 - Created May 14, 2013 and updated
Changes for https://issues.apache.org/jira/browse/PIG-3321 Overview: AvroStorage.java - If 'schema' argument is passed to constructor, use it as the reader schema on load. Moved getSchema() to AvroStorageUtils and made public+static, so it can be called from PigAvroRecordReader. AvroStorageUtils.java - Moved getSchema() here. PigAvroInputFormat.java - nothing functional here, just renamed 'schema' to 'readerSchema' for clarity. PigAvroRecordReader.java - The constructor now determines the writer schema for its split, and passes both reader and writer schema to the PigAvroDatumReader constructor, which will allow the Avro code to resolve the two. PigAvroDatumReader.java - Changed readRecord() to add entries to the output Tuple in writer order rather than reader order. TestAvroStorage.java - Added a new testcase for user specified schema in load.