titus.P.Record

class titus.P.Record(fields, fullName=None)[source]

Bases: titus.P.Pattern

Matches titus.datatype.AvroRecord with given fields and an optional name.

Note: not used for any PFA patterns, and probably shouldn’t be, even in the future. titus.P.WildRecord is used instead.

__init__(fields, fullName=None)
Parameters:
  • fields (dict from field names to titus.P) – patterns for the record fields
  • fullName (string or None) – optional name of the record pattern (if not provided, record types of any name would match)
fields
fullName