Summer.Batch.Extra.Sort.IOutputFile< T > Interface Template Reference

Class that represents an output file and its associated options (e.g., filter, formatter). More...

Inheritance diagram for Summer.Batch.Extra.Sort.IOutputFile< T >:

Public Member Functions

void OpenWriter (IRecordAccessorFactory< T > recordAccessorFactory)
 Opens the writer for this output file. More...
 
void Write (T record)
 Writes a record. More...
 
void WriteHeader (IEnumerable< T > header)
 Writes the header More...
 

Properties

FileInfo Output [get, set]
 The output file. More...
 
IFilter< T > Filter [get, set]
 The filter used for selecting the records that are written in this output file. More...
 
IFormatter< T > Formatter [get, set]
 Formatter used while writing records. More...
 

Detailed Description

Class that represents an output file and its associated options (e.g., filter, formatter).

Template Parameters
T 
Type Constraints
T :class 

Member Function Documentation

void Summer.Batch.Extra.Sort.IOutputFile< T >.OpenWriter ( IRecordAccessorFactory< T >  recordAccessorFactory)

Opens the writer for this output file.

Parameters
recordAccessorFactoryThe record accessor factory to use to open the record writer.
void Summer.Batch.Extra.Sort.IOutputFile< T >.Write ( record)

Writes a record.

Parameters
recordthe record to write
void Summer.Batch.Extra.Sort.IOutputFile< T >.WriteHeader ( IEnumerable< T >  header)

Writes the header

Parameters
headerThe header, as a list of records.

Property Documentation

The filter used for selecting the records that are written in this output file.

Formatter used while writing records.

FileInfo Summer.Batch.Extra.Sort.IOutputFile< T >.Output
getset

The output file.


The documentation for this interface was generated from the following file:
  • Summer.Batch.Extra/Sort/IOutputFile.cs