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

28 lines
866 B
Java
Raw Normal View History

2021-03-14 03:13:19 +01:00
package it.cavallium.dbengine.database.disk;
2021-09-17 16:56:28 +02:00
import io.net5.buffer.api.Buffer;
import io.net5.buffer.api.BufferAllocator;
2021-10-28 11:44:20 +02:00
import io.net5.buffer.api.Owned;
2021-09-17 16:56:28 +02:00
import io.net5.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;
2021-10-28 11:44:20 +02:00
import it.cavallium.dbengine.netty.NullableBuffer;
2021-03-14 03:13:19 +01:00
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-10-20 01:51:34 +02:00
public LLLocalEntryReactiveRocksIterator(RocksDBColumn db,
2021-08-29 23:18:03 +02:00
Send<LLRange> range,
2021-06-29 23:31:02 +02:00
boolean allowNettyDirect,
2021-10-28 11:44:20 +02:00
ReadOptions readOptions) {
2021-10-20 01:51:34 +02:00
super(db, range, allowNettyDirect, readOptions, true);
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
}
}