30 lines
808 B
Java
30 lines
808 B
Java
package it.cavallium.dbengine.database.disk;
|
|
|
|
import io.net5.buffer.api.Buffer;
|
|
import io.net5.buffer.api.BufferAllocator;
|
|
import io.net5.buffer.api.Send;
|
|
import it.cavallium.dbengine.database.LLRange;
|
|
import org.rocksdb.ColumnFamilyHandle;
|
|
import org.rocksdb.ReadOptions;
|
|
import org.rocksdb.RocksDB;
|
|
|
|
public class LLLocalKeyReactiveRocksIterator extends LLLocalReactiveRocksIterator<Send<Buffer>> {
|
|
|
|
public LLLocalKeyReactiveRocksIterator(RocksDB db,
|
|
BufferAllocator alloc,
|
|
ColumnFamilyHandle cfh,
|
|
Send<LLRange> range,
|
|
boolean allowNettyDirect,
|
|
ReadOptions readOptions) {
|
|
super(db, alloc, cfh, range, allowNettyDirect, readOptions, false);
|
|
}
|
|
|
|
@Override
|
|
public Send<Buffer> getEntry(Send<Buffer> key, Send<Buffer> value) {
|
|
if (value != null) {
|
|
value.close();
|
|
}
|
|
return key;
|
|
}
|
|
}
|