def read_footer(filename):
 with open(filename, u'rb') as file_obj:
  if ((not _check_header_magic_bytes(file_obj)) or (not _check_footer_magic_bytes(file_obj))):
   raise ParquetFormatException(u'{0} is not a valid parquet file (missing magic bytes)'.format(filename))
  return _read_footer(file_obj)

def read_footer ( filename ) : with open ( filename , u'rb' ) as file_obj : if ( ( not _check_header_magic_bytes ( file_obj ) ) or ( not _check_footer_magic_bytes ( file_obj ) ) ) : raise ParquetFormatException ( u'{0} is not a valid parquet file (missing magic bytes)' . format ( filename ) ) return _read_footer ( file_obj )
read the footer and return the filemetadata for the specified filename .