String ClassName = null;
DataInputStream in = null;
try {
in = reader.getMetaStore(BLOOM_FILE_NAME);
DynamicBloomFilter tmpBloomFilter = new DynamicBloomFilter();
// check for closed again after open but before reading the bloom filter in
if (closed)
return;
/**
* Load classname for keyFunctor
*/
ClassName = in.readUTF();
Class<? extends KeyFunctor> clazz;
if (context != null && !context.equals(""))
clazz = AccumuloVFSClassLoader.getContextManager().loadClass(context, ClassName, KeyFunctor.class);
else
clazz = AccumuloVFSClassLoader.loadClass(ClassName, KeyFunctor.class);
transformer = clazz.newInstance();
/**
* read in bloom filter
*/
tmpBloomFilter.readFields(in);
// only set the bloom filter after it is fully constructed
bloomFilter = tmpBloomFilter;
} catch (NoSuchMetaStoreException nsme) {
// file does not have a bloom filter, ignore it
} catch (IOException ioe) {