CavalliumDBEngine/src/main/java/it/cavallium/dbengine/database/disk/LLLocalKeyReactiveRocksIterator.java
2022-07-15 02:44:50 +02:00

27 lines
671 B
Java

package it.cavallium.dbengine.database.disk;
import io.netty5.buffer.api.Buffer;
import io.netty5.util.Send;
import it.cavallium.dbengine.database.LLRange;
import org.rocksdb.ReadOptions;
public class LLLocalKeyReactiveRocksIterator extends LLLocalReactiveRocksIterator<Buffer> {
public LLLocalKeyReactiveRocksIterator(RocksDBColumn db,
LLRange range,
boolean allowNettyDirect,
ReadOptions readOptions,
boolean reverse,
boolean smallRange) {
super(db, range, allowNettyDirect, readOptions, false, reverse, smallRange);
}
@Override
public Buffer getEntry(Buffer key, Buffer value) {
if (value != null) {
value.close();
}
return key;
}
}