Avro C#
 All Classes Namespaces Functions Variables Enumerations Properties
Public Member Functions | Static Public Member Functions
Avro.File.DataFileWriter< T > Class Template Reference
Inheritance diagram for Avro.File.DataFileWriter< T >:
Avro.File.IFileWriter< T >

List of all members.

Public Member Functions

bool IsReservedMeta (string key)
void SetMeta (String key, byte[] value)
 Set meta data pair.
void SetMeta (String key, long value)
 Set meta data pair (long value)
void SetMeta (String key, string value)
 Set meta data pair (string value)
void SetSyncInterval (int syncInterval)
 Set the synchronization interval for this file / stream, in bytes. Valid values range from 32 to 2^30. Suggested values are between 2K and 2M.
void Append (T datum)
 Append datum to a file / stream.
void Flush ()
 Flush out any buffered data.
long Sync ()
 Forces the end of the current block, emitting a synchronization marker.
void Close ()
 Closes the file / stream.
void Dispose ()

Static Public Member Functions

static IFileWriter< T > OpenWriter (DatumWriter< T > writer, string path)
 Open a new writer instance to write to a file path, using a Null codec.
static IFileWriter< T > OpenWriter (DatumWriter< T > writer, Stream outStream)
 Open a new writer instance to write to an output stream, using a Null codec.
static IFileWriter< T > OpenWriter (DatumWriter< T > writer, string path, Codec codec)
 Open a new writer instance to write to a file path with a specified codec.
static IFileWriter< T > OpenWriter (DatumWriter< T > writer, Stream outStream, Codec codec)
 Open a new writer instance to write to an output stream with a specified codec.

template<T>
class Avro::File::DataFileWriter< T >


Member Function Documentation

template<T >
void Avro.File.DataFileWriter< T >.Append ( datum) [inline]

Append datum to a file / stream.

Parameters:
datum

Implements Avro.File.IFileWriter< T >.

template<T >
void Avro.File.DataFileWriter< T >.Close ( ) [inline]

Closes the file / stream.

Implements Avro.File.IFileWriter< T >.

template<T >
void Avro.File.DataFileWriter< T >.Flush ( ) [inline]

Flush out any buffered data.

Implements Avro.File.IFileWriter< T >.

template<T >
bool Avro.File.DataFileWriter< T >.IsReservedMeta ( string  key) [inline]

Returns true if parameter is a reserved Avro meta data value

Parameters:
key
Returns:

Implements Avro.File.IFileWriter< T >.

template<T >
static IFileWriter<T> Avro.File.DataFileWriter< T >.OpenWriter ( DatumWriter< T >  writer,
string  path 
) [inline, static]

Open a new writer instance to write to a file path, using a Null codec.

Parameters:
writer
path
Returns:
template<T >
static IFileWriter<T> Avro.File.DataFileWriter< T >.OpenWriter ( DatumWriter< T >  writer,
Stream  outStream 
) [inline, static]

Open a new writer instance to write to an output stream, using a Null codec.

Parameters:
writer
outStream
Returns:
template<T >
static IFileWriter<T> Avro.File.DataFileWriter< T >.OpenWriter ( DatumWriter< T >  writer,
string  path,
Codec  codec 
) [inline, static]

Open a new writer instance to write to a file path with a specified codec.

Parameters:
writer
path
codec
Returns:
template<T >
static IFileWriter<T> Avro.File.DataFileWriter< T >.OpenWriter ( DatumWriter< T >  writer,
Stream  outStream,
Codec  codec 
) [inline, static]

Open a new writer instance to write to an output stream with a specified codec.

Parameters:
writer
outStream
codec
Returns:
template<T >
void Avro.File.DataFileWriter< T >.SetMeta ( String  key,
byte[]  value 
) [inline]

Set meta data pair.

Parameters:
key
value

Implements Avro.File.IFileWriter< T >.

template<T >
void Avro.File.DataFileWriter< T >.SetMeta ( String  key,
long  value 
) [inline]

Set meta data pair (long value)

Parameters:
key
value

Implements Avro.File.IFileWriter< T >.

template<T >
void Avro.File.DataFileWriter< T >.SetMeta ( String  key,
string  value 
) [inline]

Set meta data pair (string value)

Parameters:
key
value

Implements Avro.File.IFileWriter< T >.

template<T >
void Avro.File.DataFileWriter< T >.SetSyncInterval ( int  syncInterval) [inline]

Set the synchronization interval for this file / stream, in bytes. Valid values range from 32 to 2^30. Suggested values are between 2K and 2M.

Parameters:
syncInterval
Returns:

Implements Avro.File.IFileWriter< T >.

template<T >
long Avro.File.DataFileWriter< T >.Sync ( ) [inline]

Forces the end of the current block, emitting a synchronization marker.

Returns:

Implements Avro.File.IFileWriter< T >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties