2021-03-14 03:13:19 +01:00
|
|
|
package it.cavallium.dbengine.database.disk;
|
|
|
|
|
2022-03-16 13:47:56 +01:00
|
|
|
import io.netty5.buffer.api.Buffer;
|
2022-07-15 02:44:50 +02:00
|
|
|
import io.netty5.util.Send;
|
2021-08-28 22:42:51 +02:00
|
|
|
import it.cavallium.dbengine.database.LLEntry;
|
2021-03-14 03:13:19 +01:00
|
|
|
import it.cavallium.dbengine.database.LLRange;
|
|
|
|
import org.rocksdb.ReadOptions;
|
|
|
|
|
2022-05-20 10:20:00 +02:00
|
|
|
public class LLLocalEntryReactiveRocksIterator extends LLLocalReactiveRocksIterator<LLEntry> {
|
2021-03-14 03:13:19 +01:00
|
|
|
|
2021-10-20 01:51:34 +02:00
|
|
|
public LLLocalEntryReactiveRocksIterator(RocksDBColumn db,
|
2022-05-20 10:20:00 +02:00
|
|
|
LLRange range,
|
2021-06-29 23:31:02 +02:00
|
|
|
boolean allowNettyDirect,
|
2022-05-20 10:20:00 +02:00
|
|
|
ReadOptions readOptions,
|
2022-03-24 23:56:23 +01:00
|
|
|
boolean reverse,
|
|
|
|
boolean smallRange) {
|
|
|
|
super(db, range, allowNettyDirect, readOptions, true, reverse, smallRange);
|
2021-03-14 03:13:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2022-05-20 10:20:00 +02:00
|
|
|
public LLEntry getEntry(Buffer key, Buffer value) {
|
|
|
|
assert key != null;
|
|
|
|
assert value != null;
|
|
|
|
return LLEntry.of(
|
|
|
|
key.touch("iteration entry key"),
|
|
|
|
value.touch("iteration entry value")
|
|
|
|
);
|
2021-03-14 03:13:19 +01:00
|
|
|
}
|
|
|
|
}
|