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

30 lines
785 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 org.rocksdb.ColumnFamilyHandle;
import org.rocksdb.ReadOptions;
import org.rocksdb.RocksDB;
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,
ByteBufAllocator alloc,
2021-03-14 03:13:19 +01:00
ColumnFamilyHandle cfh,
int prefixLength,
LLRange range,
2021-03-14 13:08:03 +01:00
ReadOptions readOptions,
String debugName) {
super(db, alloc, cfh, prefixLength, range, readOptions, true, false);
2021-03-14 03:13:19 +01:00
}
@Override
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;
}
}