[ https://issues.apache.org/jira/browse/AVRO-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doug Cutting updated AVRO-245: ------------------------------ Attachment: AVRO-245.patch I hacked on this patch some last week. Changes I made: - the build.xml change you made didn't work: i think ant uses glob-like patterns, not regex. instead i just named the file AvroTestUtil.java. - i used more generic types for local variables when possible, e.g., Encoder rather than JsonEncoder, etc. - the NullDatumReader in GetSchemaTool wasn't needed. GenericDatumReader could be used. - tried hard to not create new json decoder or encoders per line in DataFile read/write tools since these are not lightweight. in the reader we need a reliable precise way of detecting EOF from an decoder. perhaps it should be fixed to throw EOFException, or perhaps the tool should keep track of its position in the input and stop when it reaches the end. in the writer there seems to be a bug in Jackson that emits an extra space. we should pursue this and figure out what's going on, since we need these tools to perform reasonably well. the patch attached passes tests and creates fewer objects, but this area still needs more work i fear. > Commandline utility for converting to and from Avro's binary format. > -------------------------------------------------------------------- > > Key: AVRO-245 > URL: https://issues.apache.org/jira/browse/AVRO-245 > Project: Avro > Issue Type: New Feature > Components: java > Reporter: Philip Zeyliger > Assignee: Philip Zeyliger > Priority: Minor > Attachments: AVRO-245.patch, AVRO-245.patch.txt, AVRO-245.patch.txt, > AVRO-245.patch.txt, AVRO-245.patch.txt > > > A utility for avrotool that can convert between Avro binary data and the JSON > textual form. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.