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

27 lines
758 B
Java
Raw Normal View History

2021-03-14 03:13:19 +01:00
package it.cavallium.dbengine.database.disk;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;
2021-03-14 03:13:19 +01:00
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;
public class LLLocalEntryReactiveRocksIterator extends LLLocalReactiveRocksIterator<Entry<ByteBuf, ByteBuf>> {
2021-03-14 03:13:19 +01:00
2021-03-14 23:06:46 +01:00
public LLLocalEntryReactiveRocksIterator(RocksDB db,
ByteBufAllocator alloc,
2021-03-14 03:13:19 +01:00
ColumnFamilyHandle cfh,
LLRange range,
ReadOptions readOptions) {
super(db, alloc, cfh, range, readOptions, true);
2021-03-14 03:13:19 +01:00
}
@Override
public Entry<ByteBuf, ByteBuf> getEntry(ByteBuf key, ByteBuf value) {
2021-03-14 03:13:19 +01:00
return Map.entry(key, value);
}
}