2021-03-14 03:13:19 +01:00
|
|
|
package it.cavallium.dbengine.database.disk;
|
|
|
|
|
2021-04-30 19:15:04 +02:00
|
|
|
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 org.rocksdb.ColumnFamilyHandle;
|
|
|
|
import org.rocksdb.ReadOptions;
|
|
|
|
import org.rocksdb.RocksDB;
|
|
|
|
|
2021-04-30 19:15:04 +02:00
|
|
|
public class LLLocalGroupedKeyReactiveRocksIterator extends LLLocalGroupedReactiveRocksIterator<ByteBuf> {
|
2021-03-14 03:13:19 +01:00
|
|
|
|
2021-03-14 23:06:46 +01:00
|
|
|
public LLLocalGroupedKeyReactiveRocksIterator(RocksDB db,
|
2021-04-30 19:15:04 +02:00
|
|
|
ByteBufAllocator alloc,
|
2021-03-14 03:13:19 +01:00
|
|
|
ColumnFamilyHandle cfh,
|
|
|
|
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, true, false);
|
2021-03-14 03:13:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2021-04-30 19:15:04 +02:00
|
|
|
public ByteBuf getEntry(ByteBuf key, ByteBuf value) {
|
2021-05-02 19:18:15 +02:00
|
|
|
if (value != null) {
|
|
|
|
value.release();
|
|
|
|
}
|
2021-03-14 03:13:19 +01:00
|
|
|
return key;
|
|
|
|
}
|
|
|
|
}
|