2021-03-14 03:13:19 +01:00
|
|
|
package it.cavallium.dbengine.database.disk;
|
|
|
|
|
2023-02-09 23:34:25 +01:00
|
|
|
import it.cavallium.dbengine.buffers.Buf;
|
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;
|
2022-07-19 23:45:39 +02:00
|
|
|
import java.util.function.Supplier;
|
2021-03-14 03:13:19 +01:00
|
|
|
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,
|
2023-02-09 23:34:25 +01:00
|
|
|
LLRange range,
|
2022-07-19 23:45:39 +02:00
|
|
|
Supplier<ReadOptions> readOptions,
|
2022-03-24 23:56:23 +01:00
|
|
|
boolean reverse,
|
|
|
|
boolean smallRange) {
|
2023-02-09 23:34:25 +01:00
|
|
|
super(db, range, readOptions, true, reverse, smallRange);
|
2021-03-14 03:13:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2023-02-09 23:34:25 +01:00
|
|
|
public LLEntry getEntry(Buf key, Buf value) {
|
2022-05-20 10:20:00 +02:00
|
|
|
assert key != null;
|
|
|
|
assert value != null;
|
2023-02-09 23:34:25 +01:00
|
|
|
return LLEntry.of(key.copy(), value.copy());
|
2021-03-14 03:13:19 +01:00
|
|
|
}
|
|
|
|
}
|