'Get the max repetition level for the given schema path.'

def max_repetition_level(self, path):

    max_level = 0
    for part in path:
        element = self.schema_element(part)
        if (element.repetition_type == parquet_thrift.FieldRepetitionType.REQUIRED):
            max_level += 1
    return max_level
