/[Apache-SVN]
ViewVC logotype

Revision 1236284


Jump to revision: Previous Next
Author: dcreager
Date: Thu Jan 26 16:47:31 2012 UTC (12 years, 2 months ago)
Changed paths: 9
Log Message:
AVRO-986. C/Java: Fixed relates to sync markers in file headers.

The C bindings no longer add an "avro.sync" entry to the header of an
Avro file.  (Previously, the Java bindings (at least) would barf if this
sync marker was present, since they'd treat that as the end of the file
header.)  The Java bindings now ignore the extra sync marker, if
present.

In addition, this patch adds a new "avromod" command-line utility to the
C bindings.  This utility can be used (among other things) to remove the
sync marker from the header of an existing file.  It works by copying
all of the records from a source file to a destination file.  You can
also override the block size and compression codec of the new
destination file.


Changed paths

Path Details
Directoryavro/trunk/CHANGES.txt modified , text changed
Directoryavro/trunk/lang/c/src/CMakeLists.txt modified , text changed
Directoryavro/trunk/lang/c/src/avrocat.c modified , text changed
Directoryavro/trunk/lang/c/src/avromod.c added
Directoryavro/trunk/lang/c/src/avropipe.c modified , text changed
Directoryavro/trunk/lang/c/src/datafile.c modified , text changed
Directoryavro/trunk/lang/java/avro/src/main/java/org/apache/avro/file/DataFileReader.java modified , text changed
Directoryavro/trunk/lang/java/avro/src/test/java/org/apache/avro/TestDataFile.java modified , text changed
Directoryavro/trunk/share/test/data/syncInMeta.avro added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26