morpheus.modules.serialize
Functions
serialize (builder) |
Includes & excludes columns from messages. |
- serialize(builder)[source]
Includes & excludes columns from messages.
This module filters columns from a
MultiMessage
object emitting aMessageMeta
.- Parameters
- builder
mrc Builder object.
Notes
- Configurable Parameters:
- columns (list[str]): List of columns to include; Example:
["column1", "column2", "column3"]
;
Default: None
- columns (list[str]): List of columns to include; Example:
- exclude (list[str]): List of regex patterns to exclude columns; Example:
["column_to_exclude"]
;
Default:
[r'^ID$', r'^_ts_']
- exclude (list[str]): List of regex patterns to exclude columns; Example:
- fixed_columns (bool): If true, the columns are fixed and not determined at runtime; Example:
true
;
Default: true
- fixed_columns (bool): If true, the columns are fixed and not determined at runtime; Example:
include (str): Regex to include columns; Example:
^column
; Default: Noneuse_cpp (bool): If true, use C++ to serialize; Example:
true
; Default: false