CavalliumDBEngine/src/main/java/it/cavallium/dbengine/database/disk/LLLocalKeyReactiveRocksIterator.java
2023-03-06 12:19:08 +01:00

23 lines
617 B
Java

package it.cavallium.dbengine.database.disk;
import it.cavallium.buffer.Buf;
import it.cavallium.dbengine.database.LLRange;
import java.util.function.Supplier;
import org.rocksdb.ReadOptions;
public class LLLocalKeyReactiveRocksIterator extends LLLocalReactiveRocksIterator<Buf> {
public LLLocalKeyReactiveRocksIterator(RocksDBColumn db,
LLRange rangeMono,
Supplier<ReadOptions> readOptions,
boolean reverse,
boolean smallRange) {
super(db, rangeMono, readOptions, false, reverse, smallRange);
}
@Override
public Buf getEntry(Buf key, Buf value) {
return key != null ? key.copy() : null;
}
}