I am using the DataFileWriter to create an avro file and was wondering is doing a DataFileWriter#close the only way of committing the data to the file? I tried doing a DataFileWriter#flush but no dice. I wanted a capability where I can keep appending to an avro file without the need to close it and reopen it every single time.
The flush of the wrapper stream should also flush its underlying stream.
On Wed, Jul 10, 2013 at 9:52 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Looking at the source for flush on the DataFileWriter, it looks like we > do not flush the actual outputstream that we are writing data to. Should we > possibly have an out.flush() in there as well? > >  > http://grepcode.com/file/repo1.maven.org/maven2/org.apache.avro/avro/1.7.4/org/apache/avro/file/DataFileWriter.java#DataFileWriter.flush%28%29 > > > On Wed, Jul 10, 2013 at 11:41 AM, Doug Cutting <[EMAIL PROTECTED]> wrote: >> >> On Wed, Jul 10, 2013 at 9:35 AM, [EMAIL PROTECTED] >> <[EMAIL PROTECTED]> wrote: >> > I tried doing a DataFileWriter#flush but no dice. >> >> That should work. How did it fail? >> >> Doug > > > > > -- > Swarnim
NEW: Monitor These Apps!
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by Sematext