Public Member Functions

avro::DataFileWriter< T > Class Template Reference

An Avro datafile that can store objects of type T. More...

#include <DataFile.hh>

List of all members.

Public Member Functions

 DataFileWriter (const char *filename, const ValidSchema &schema, size_t syncInterval=16 *1024)
 Constructs a new data file.
void write (const T &datum)
 Writes the given piece of data into the file.
void close ()
 Closes the current file.
const ValidSchemaschema () const
 Returns the schema for this data file.
void flush ()
 Flushes any unwritten data into the file.

Detailed Description

template<typename T>
class avro::DataFileWriter< T >

An Avro datafile that can store objects of type T.


Member Function Documentation

template<typename T>
void avro::DataFileWriter< T >::close (  )  [inline]

Closes the current file.

Once closed this datafile object cannot be used for writing any more.


The documentation for this class was generated from the following file: