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

Public Member Functions

bool IsReservedMeta (string key)
 
void SetMeta (String key, byte[] value)
 Set meta data pair More...
 
void SetMeta (String key, long value)
 Set meta data pair (long value) More...
 
void SetMeta (String key, string value)
 Set meta data pair (string value) More...
 
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 More...
 
void Append (T datum)
 Append datum to a file / stream More...
 
void Flush ()
 Flush out any buffered data More...
 
long Sync ()
 Forces the end of the current block, emitting a synchronization marker More...
 
void Close ()
 Closes the file / stream More...
 
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 More...
 
static IFileWriter< T > OpenWriter (DatumWriter< T > writer, Stream outStream)
 Open a new writer instance to write to an output stream, using a Null codec More...
 
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 More...
 
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 More...
 

Member Function Documentation

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

Append datum to a file / stream

Parameters
datum

Implements Avro.File.IFileWriter< T >.

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

Closes the file / stream

Implements Avro.File.IFileWriter< T >.

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

Flush out any buffered data

Implements Avro.File.IFileWriter< 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 >.

static IFileWriter<T> Avro.File.DataFileWriter< T >.OpenWriter ( DatumWriter< T >  writer,
string  path 
)
inlinestatic

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

Parameters
writer
path
Returns
static IFileWriter<T> Avro.File.DataFileWriter< T >.OpenWriter ( DatumWriter< T >  writer,
Stream  outStream 
)
inlinestatic

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

Parameters
writer
outStream
Returns
static IFileWriter<T> Avro.File.DataFileWriter< T >.OpenWriter ( DatumWriter< T >  writer,
string  path,
Codec  codec 
)
inlinestatic

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

Parameters
writer
path
codec
Returns
static IFileWriter<T> Avro.File.DataFileWriter< T >.OpenWriter ( DatumWriter< T >  writer,
Stream  outStream,
Codec  codec 
)
inlinestatic

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

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

Set meta data pair

Parameters
key
value

Implements Avro.File.IFileWriter< 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 >.

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 >.

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 >.

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: