morpheus.modules.write_to_file
To File Sink Module.
Functions
write_to_file (builder) |
Write all messages to a file. |
- write_to_file(builder)[source]
Write all messages to a file.
- Parameters
- buildermrc.Builder
mrc Builder object.
Notes
- Configurable Parameters:
filename (str): Path to the output file; Example:
output.csv
; Default: Nonefile_type (FileTypes): Type of file to write; Example:
FileTypes.CSV
; Default:FileTypes.Auto
flush (bool): If true, flush the file after each write; Example:
false
; Default: falseinclude_index_col (bool): If true, include the index column; Example:
false
; Default: trueoverwrite (bool): If true, overwrite the file if it exists; Example:
true
; Default: false