2021-03-14 03:13:19 +01:00
|
|
|
package it.cavallium.dbengine.database.disk;
|
|
|
|
|
2021-09-04 02:19:10 +02:00
|
|
|
import io.netty5.buffer.api.Buffer;
|
|
|
|
import io.netty5.buffer.api.BufferAllocator;
|
|
|
|
import io.netty5.buffer.api.Send;
|
2021-08-28 22:42:51 +02:00
|
|
|
import it.cavallium.dbengine.database.LLEntry;
|
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-08-29 23:18:03 +02:00
|
|
|
public class LLLocalEntryReactiveRocksIterator extends LLLocalReactiveRocksIterator<Send<LLEntry>> {
|
2021-03-14 03:13:19 +01:00
|
|
|
|
2021-03-14 23:06:46 +01:00
|
|
|
public LLLocalEntryReactiveRocksIterator(RocksDB db,
|
2021-08-29 23:18:03 +02:00
|
|
|
BufferAllocator alloc,
|
2021-03-14 03:13:19 +01:00
|
|
|
ColumnFamilyHandle cfh,
|
2021-08-29 23:18:03 +02:00
|
|
|
Send<LLRange> range,
|
2021-06-29 23:31:02 +02:00
|
|
|
boolean allowNettyDirect,
|
2021-05-28 16:04:59 +02:00
|
|
|
ReadOptions readOptions,
|
|
|
|
String debugName) {
|
2021-06-29 23:31:02 +02:00
|
|
|
super(db, alloc, cfh, range, allowNettyDirect, readOptions, true, debugName);
|
2021-03-14 03:13:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2021-08-29 23:18:03 +02:00
|
|
|
public Send<LLEntry> getEntry(Send<Buffer> key, Send<Buffer> value) {
|
|
|
|
return LLEntry.of(key, value).send();
|
2021-03-14 03:13:19 +01:00
|
|
|
}
|
|
|
|
}
|