def _read_footer(file_obj):
 footer_size = _get_footer_size(file_obj)
 if logger.isEnabledFor(logging.DEBUG):
  logger.debug(u'Footer size in bytes: %s', footer_size)
 file_obj.seek((- (8 + footer_size)), 2)
 tin = TFileTransport(file_obj)
 pin = TCompactProtocolFactory().get_protocol(tin)
 fmd = parquet_thrift.FileMetaData()
 fmd.read(pin)
 return fmd

def _read_footer ( file_obj ) : footer_size = _get_footer_size ( file_obj ) if logger . isEnabledFor ( logging . DEBUG ) : logger . debug ( u'Footer size in bytes: %s' , footer_size ) file_obj . seek ( ( - ( 8 + footer_size ) ) , 2 ) tin = TFileTransport ( file_obj ) pin = TCompactProtocolFactory ( ) . get_protocol ( tin ) fmd = parquet_thrift . FileMetaData ( ) fmd . read ( pin ) return fmd
read the footer from the given file object and returns a filemetadata object .