Futures, meet Lucene
A while back I ran into a strange little problem, I needed to create a Lucene index with not only the contents of files but their hashes as well. It seemed like something that should be simple — and at first it was; I read through the file once with an InputStream to generate the hash, then…