Package be.bagofwords.db.bloomfilter
Class BloomFilterDataInterface<T>
- java.lang.Object
-
- be.bagofwords.db.impl.BaseDataInterface<T>
-
- be.bagofwords.db.LayeredDataInterface<T>
-
- be.bagofwords.db.bloomfilter.BloomFilterDataInterface<T>
-
- All Implemented Interfaces:
DataInterface<T>,be.bagofwords.iterator.DataIterable<be.bagofwords.util.KeyValue<T>>,Iterable<be.bagofwords.util.KeyValue<T>>
public class BloomFilterDataInterface<T> extends LayeredDataInterface<T>
-
-
Field Summary
-
Fields inherited from class be.bagofwords.db.LayeredDataInterface
baseInterface
-
Fields inherited from class be.bagofwords.db.impl.BaseDataInterface
combinator, isTemporaryDataInterface, name, objectClass, objectSerializer
-
-
Constructor Summary
Constructors Constructor Description BloomFilterDataInterface(BaseDataInterface<T> baseInterface, BaseDataInterface<LongBloomFilterWithCheckSum> bloomFilterDataInterface, be.bagofwords.jobs.AsyncJobService asyncJobService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoCloseImpl()voiddropAllData()voidflush()booleanmightContain(long key)voidoptimizeForReading()Tread(long key)voidwrite(long key, T value)voidwrite(be.bagofwords.iterator.CloseableIterator<be.bagofwords.util.KeyValue<T>> keyValueIterator)-
Methods inherited from class be.bagofwords.db.LayeredDataInterface
apprSize, cachedValueIterator, doClose, getCoreDataInterface, iterator, iterator, iterator, iterator, keyIterator, registerUpdateListener, streamValues, streamValues, valueIterator, valueIterator, valueIterator
-
Methods inherited from class be.bagofwords.db.impl.BaseDataInterface
apprDataChecksum, close, exactSize, finalize, getCombinator, getName, getObjectClass, getObjectSerializer, ifNotClosed, isTemporaryDataInterface, wasClosed
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface be.bagofwords.db.DataInterface
increaseCount, increaseCount, increaseCount, increaseCount, iterator, mightContain, read, read, readCount, readCount, readCount, remove, remove, stream, stream, stream, stream, streamKeys, streamValues, streamValues, streamValues, valueIterator, valueIterator, write, write, write
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
BloomFilterDataInterface
public BloomFilterDataInterface(BaseDataInterface<T> baseInterface, BaseDataInterface<LongBloomFilterWithCheckSum> bloomFilterDataInterface, be.bagofwords.jobs.AsyncJobService asyncJobService)
-
-
Method Detail
-
optimizeForReading
public void optimizeForReading()
- Specified by:
optimizeForReadingin interfaceDataInterface<T>- Overrides:
optimizeForReadingin classLayeredDataInterface<T>
-
read
public T read(long key)
- Specified by:
readin interfaceDataInterface<T>- Overrides:
readin classLayeredDataInterface<T>
-
write
public void write(long key, T value)- Specified by:
writein interfaceDataInterface<T>- Overrides:
writein classLayeredDataInterface<T>
-
write
public void write(be.bagofwords.iterator.CloseableIterator<be.bagofwords.util.KeyValue<T>> keyValueIterator)
- Specified by:
writein interfaceDataInterface<T>- Overrides:
writein classLayeredDataInterface<T>
-
dropAllData
public void dropAllData()
- Specified by:
dropAllDatain interfaceDataInterface<T>- Overrides:
dropAllDatain classLayeredDataInterface<T>
-
mightContain
public boolean mightContain(long key)
- Specified by:
mightContainin interfaceDataInterface<T>- Overrides:
mightContainin classLayeredDataInterface<T>
-
flush
public void flush()
- Specified by:
flushin interfaceDataInterface<T>- Overrides:
flushin classLayeredDataInterface<T>
-
doCloseImpl
protected void doCloseImpl()
- Specified by:
doCloseImplin classLayeredDataInterface<T>
-
-