java.io.Closeable, java.lang.AutoCloseablepublic final class IdentitySieve<K,V> extends AbstractSieve<K,V>
Note that instances of this class call AbstractSieve.NewFlowReceiver.prepareToAppend() in the constructor only, and
AbstractSieve.NewFlowReceiver.noMoreAppend() in the method close() only.
AbstractSieve.DefaultUpdateStrategy<K,V>, AbstractSieve.DiskNewFlow<T>, AbstractSieve.NewFlowReceiver<K>, AbstractSieve.SieveEntry<K,V>, AbstractSieve.UpdateStrategy<K,V>CHAR_SEQUENCE_HASHING_STRATEGY, hashingStrategy, keySerDeser, newFlowReceiver, updateStrategy, valueSerDeser| Constructor | Description |
|---|---|
IdentitySieve(AbstractSieve.NewFlowReceiver<K> newFlowReceiver,
ByteSerializerDeserializer<K> keySerDeser,
ByteSerializerDeserializer<V> valueSerDeser,
it.unimi.dsi.sux4j.mph.AbstractHashFunction<K> hashingStrategy,
AbstractSieve.UpdateStrategy<K,V> updateStrategy) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes (forever) this sieve.
|
boolean |
enqueue(K key,
V value) |
Add the given (key,value) pair to the store.
|
void |
flush() |
Forces the check+update of all pairs that have been enqueued.
|
setNewFlowRecevierpublic IdentitySieve(AbstractSieve.NewFlowReceiver<K> newFlowReceiver, ByteSerializerDeserializer<K> keySerDeser, ByteSerializerDeserializer<V> valueSerDeser, it.unimi.dsi.sux4j.mph.AbstractHashFunction<K> hashingStrategy, AbstractSieve.UpdateStrategy<K,V> updateStrategy) throws java.io.IOException
java.io.IOExceptionpublic boolean enqueue(K key, V value) throws java.io.IOException
AbstractSieveenqueue in class AbstractSieve<K,V>java.io.IOExceptionpublic void close()
throws java.io.IOException
AbstractSieveclose in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class AbstractSieve<K,V>java.io.IOExceptionpublic void flush()
throws java.io.IOException,
java.lang.InterruptedException
AbstractSieveflush in class AbstractSieve<K,V>java.io.IOExceptionjava.lang.InterruptedException