2021-03-14 03:13:19 +01:00
|
|
|
package it.cavallium.dbengine.database.disk;
|
|
|
|
|
|
|
|
import it.cavallium.dbengine.database.LLRange;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map.Entry;
|
|
|
|
import org.rocksdb.ColumnFamilyHandle;
|
|
|
|
import org.rocksdb.ReadOptions;
|
|
|
|
import org.rocksdb.RocksDB;
|
|
|
|
|
2021-03-14 23:06:46 +01:00
|
|
|
public class LLLocalEntryReactiveRocksIterator extends LLLocalReactiveRocksIterator<Entry<byte[], byte[]>> {
|
2021-03-14 03:13:19 +01:00
|
|
|
|
2021-03-14 23:06:46 +01:00
|
|
|
public LLLocalEntryReactiveRocksIterator(RocksDB db,
|
2021-03-14 03:13:19 +01:00
|
|
|
ColumnFamilyHandle cfh,
|
|
|
|
LLRange range,
|
|
|
|
ReadOptions readOptions) {
|
|
|
|
super(db, cfh, range, readOptions, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Entry<byte[], byte[]> getEntry(byte[] key, byte[] value) {
|
|
|
|
return Map.entry(key, value);
|
|
|
|
}
|
|
|
|
}
|