CavalliumDBEngine/src/main/java/it/cavallium/dbengine/database/disk/LLLocalKeyReactiveRocksIterator.java

29 lines
734 B
Java
Raw Normal View History

2021-03-14 03:13:19 +01:00
package it.cavallium.dbengine.database.disk;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;
2021-03-14 03:13:19 +01:00
import it.cavallium.dbengine.database.LLRange;
import org.rocksdb.ColumnFamilyHandle;
import org.rocksdb.ReadOptions;
import org.rocksdb.RocksDB;
public class LLLocalKeyReactiveRocksIterator extends LLLocalReactiveRocksIterator<ByteBuf> {
2021-03-14 03:13:19 +01:00
2021-03-14 23:06:46 +01:00
public LLLocalKeyReactiveRocksIterator(RocksDB db,
ByteBufAllocator alloc,
2021-03-14 03:13:19 +01:00
ColumnFamilyHandle cfh,
LLRange range,
2021-05-28 16:04:59 +02:00
ReadOptions readOptions,
String debugName) {
super(db, alloc, cfh, range, readOptions, false, debugName);
2021-03-14 03:13:19 +01:00
}
@Override
public ByteBuf getEntry(ByteBuf key, ByteBuf value) {
2021-05-02 19:18:15 +02:00
if (value != null) {
value.release();
}
2021-03-14 03:13:19 +01:00
return key;
}
}