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

27 lines
819 B
Java
Raw Normal View History

2021-03-14 03:13:19 +01:00
package it.cavallium.dbengine.database.disk;
2023-03-06 12:19:08 +01:00
import it.cavallium.buffer.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;
2023-05-22 19:12:05 +02:00
import it.cavallium.dbengine.database.disk.rocksdb.LLReadOptions;
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;
public class LLLocalGroupedEntryReactiveRocksIterator extends LLLocalGroupedReactiveRocksIterator<LLEntry> {
2021-03-14 03:13:19 +01:00
2021-10-20 01:51:34 +02:00
public LLLocalGroupedEntryReactiveRocksIterator(RocksDBColumn db,
2021-03-14 03:13:19 +01:00
int prefixLength,
LLRange range,
2023-05-22 19:12:05 +02:00
Supplier<LLReadOptions> readOptions,
2022-03-24 23:56:23 +01:00
boolean smallRange) {
super(db, prefixLength, range, readOptions, true, true, smallRange);
2021-03-14 03:13:19 +01:00
}
@Override
public LLEntry getEntry(Buf key, Buf value) {
assert key != null;
assert value != null;
return LLEntry.of(key.copy(), value.copy());
2021-03-14 03:13:19 +01:00
}
}