titus.P.WildRecord

class titus.P.WildRecord(label, minimalFields=None)[source]

Bases: titus.P.Pattern

Matches a titus.datatype.AvroRecord with at least the requested set of fields.

Label letters are shared across a signature (e.g. if two wildcards are both labeled “A”, then they both have to resolve to the same type).

__init__(label, minimalFields=None)
Parameters:
  • label (string) – label letter (usually one character long, but in principle an arbitrary string)
  • minimalFields (dict from field name to titus.P) – fields that a matching record must have and patterns for their respective types
label
minimalFields