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

29 lines
885 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;
2021-03-14 23:06:46 +01:00
public class LLLocalGroupedEntryReactiveRocksIterator extends
LLLocalGroupedReactiveRocksIterator<Entry<ByteBuf, ByteBuf>> {
2021-03-14 03:13:19 +01:00
public LLLocalGroupedEntryReactiveRocksIterator(RocksDB db, ByteBufAllocator alloc, ColumnFamilyHandle cfh,
2021-03-14 03:13:19 +01:00
int prefixLength,
LLRange range,
2021-06-29 23:31:02 +02:00
boolean allowNettyDirect,
2021-03-14 13:08:03 +01:00
ReadOptions readOptions,
String debugName) {
2021-06-29 23:31:02 +02:00
super(db, alloc, cfh, prefixLength, range, allowNettyDirect, readOptions, false, 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);
}
}