Internals¶
- class txf.Transform(name[, inputs=()[, outputs=()[, source=None]]])¶
The base class for all transforms. It provides services for creating and validating the common attributes. It is an
iterable
, so it can be used infor
loops.- source: Transform or None¶
The input pipeline.
- inputs: tuple(str)¶
The input field names, if any.
- outputs: tuple(str)¶
The output field names, if any.
- fieldnames: tuple(str)¶
The full list of fields a record will have after being processed by this transform. It is carefully maintained to preserve physical layout order, e.g., a
Split
transformation will replace the input in the sourcefieldnames
with the outputs.
- schema: dict(str -> metadata)¶
A mapping from field names to metadata.
- exception txf.TransformException(message=None)¶
A module-specific exception derived from
Exception