blob: fc16a46ca0897c0af6b775d7d1e8472870890a7d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
The CompatibilityTest of bloom_filter-test.cc is used to test cross compatibility of
Bloom filters between parquet-mr and parquet-cpp. It reads the Bloom filter binary
generated by the Bloom filter class in the parquet-mr project and tests whether the
values inserted before could be filtered or not.
The Bloom filter binary is generated by three steps from Parquet-mr:
Step 1: Construct a Bloom filter with 1024 bytes of bitset.
Step 2: Insert hashes of "hello", "parquet", "bloom", "filter" strings to Bloom filter
by calling hash and insert APIs.
Step 3: Call writeTo API to write to File.
|