@classmethod
def from_xlogdb_line(cls, line):
    """
        Parse a line from xlog catalogue

        :param str line: a line in the wal database to parse
        :rtype: WalFileInfo
        """
    try:
        name, size, time, compression = line.split()
    except ValueError:
        compression = None
        try:
            name, size, time = line.split()
        except ValueError:
            raise ValueError('cannot parse line: %r' % (line,))
    if compression == 'None':
        compression = None
    size = int(size)
    time = float(time)
    return cls(name=name, size=size, time=time, compression=compression)
