DaveAKing / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Serialization & Deserilization of bloom filter not working... #1564

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
// Serialize
ObjectOutputStream objectWriter = new ObjectOutputStream(new 
FileOutputStream("bloomfilter.obj"));
objectWriter.writeObject(bloomFilter);
objectWriter.flush();
objectWriter.close();

// Deserialize
ObjectInputStream readerObject = new ObjectInputStream(new 
FileInputStream(inputFile+".obj"));
BloomFilter<String> bloomFilterAfterDes = (BloomFilter<String>) 
readerObject.readObject();
readerObject.close();

bloomFilterAfterDes.mightContains call returns false even when the element 
available in bloomFilterAfterDes but bloomFilter instance returns proper value.

Original issue reported on code.google.com by saravana...@gmail.com on 30 Oct 2013 at 5:30

GoogleCodeExporter commented 9 years ago
Can you give us a complete program?

Original comment by kevinb@google.com on 30 Oct 2013 at 5:57

GoogleCodeExporter commented 9 years ago
Sorry...It works fine...Please close this bug

Original comment by saravana...@gmail.com on 30 Oct 2013 at 7:29

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 30 Oct 2013 at 7:30

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08