diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-04 16:23:29 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-04 16:23:29 +0100 |
| commit | 1af0468788c0a592a76398206e6c7479384853ec (patch) | |
| tree | 1860ec77be705a0715cc4c90c51176b22fabfca8 /database/src/sort/value.rs | |
| parent | 088b6b323130b0a9509c76f395c7ed4bf5609234 (diff) | |
| download | jellything-1af0468788c0a592a76398206e6c7479384853ec.tar jellything-1af0468788c0a592a76398206e6c7479384853ec.tar.bz2 jellything-1af0468788c0a592a76398206e6c7479384853ec.tar.zst | |
stuff
Diffstat (limited to 'database/src/sort/value.rs')
| -rw-r--r-- | database/src/sort/value.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/database/src/sort/value.rs b/database/src/sort/value.rs index 79bdc0b..6e42fd7 100644 --- a/database/src/sort/value.rs +++ b/database/src/sort/value.rs @@ -6,12 +6,12 @@ use crate::{ filter::binning::Binning, - query::{MultiBehaviour, ValueSort}, + query::{MultiBehaviour, Sort, ValueSort}, sort::Index, - table::{RowNum, TableNum}, + table::{RowIter, RowNum, TableNum}, }; use anyhow::Result; -use jellykv::WriteTransaction; +use jellykv::{ReadTransaction, WriteTransaction}; use jellyobject::Object; pub struct ValueIndex { @@ -50,6 +50,9 @@ impl Index for ValueIndex { fn compare(&self, before: Object, after: Object) -> bool { self.keys(0, before) == self.keys(0, after) } + fn query(&self, txn: &mut dyn ReadTransaction, sort: &Sort) -> Result<RowIter> { + todo!() + } } impl ValueSort { fn apply(&self, ob: Object, keys: &mut Vec<Vec<u8>>) { |