Created
October 30, 2018 08:10
-
-
Save yujuwon/77b73e972a7c47a5ec5a99980b204594 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.hadoop.util.bloom.BloomFilter; | |
import org.apache.hadoop.util.hash.Hash; | |
//bloomFilter 생성 | |
BloomFilter bloomFilters[] = new BloomFilter[1]; | |
bloomFilter[0] =BloomFilter(10000, 2, Hash.MURMUR_HASH); | |
String data = "apple"; | |
// data 넣기 | |
bloomFilter[0].add(new Key(data.getBytes())); | |
// data 찾기 | |
bloomFilter[0].membershipTest(new Key(data.getBytes())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment