/** * Read out the bloom filter from the parquet file meta data. */ public static BloomFilter readBloomFilterFromParquetMetadata(Configuration configuration, Path parquetFilePath) { String footerVal = readParquetFooter(configuration, parquetFilePath, HoodieAvroWriteSupport.HOODIE_AVRO_BLOOM_FILTER_METADATA_KEY).get(0); return new BloomFilter(footerVal); }
public static String[] readMinMaxRecordKeys(Configuration configuration, Path parquetFilePath) { List<String> minMaxKeys = readParquetFooter(configuration, parquetFilePath, HoodieAvroWriteSupport.HOODIE_MIN_RECORD_KEY_FOOTER, HoodieAvroWriteSupport.HOODIE_MAX_RECORD_KEY_FOOTER); if (minMaxKeys.size() != 2) { throw new HoodieException(String.format( "Could not read min/max record key out of footer correctly from %s. read) : %s", parquetFilePath, minMaxKeys)); } return new String[] {minMaxKeys.get(0), minMaxKeys.get(1)}; }