aboutsummaryrefslogtreecommitdiff
path: root/database/src/sort/value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'database/src/sort/value.rs')
-rw-r--r--database/src/sort/value.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/database/src/sort/value.rs b/database/src/sort/value.rs
index bd79db9..79bdc0b 100644
--- a/database/src/sort/value.rs
+++ b/database/src/sort/value.rs
@@ -6,7 +6,7 @@
use crate::{
filter::binning::Binning,
- query::{MultiBehaviour, ValueSortComponent},
+ query::{MultiBehaviour, ValueSort},
sort::Index,
table::{RowNum, TableNum},
};
@@ -17,11 +17,11 @@ use jellyobject::Object;
pub struct ValueIndex {
id: TableNum,
binning: Binning,
- sort: ValueSortComponent,
+ sort: ValueSort,
}
impl ValueIndex {
- pub fn new(id: TableNum, binning: Binning, sort: ValueSortComponent) -> Self {
+ pub fn new(id: TableNum, binning: Binning, sort: ValueSort) -> Self {
Self { id, binning, sort }
}
fn keys(&self, id: RowNum, ob: Object) -> Vec<Vec<u8>> {
@@ -51,7 +51,7 @@ impl Index for ValueIndex {
self.keys(0, before) == self.keys(0, after)
}
}
-impl ValueSortComponent {
+impl ValueSort {
fn apply(&self, ob: Object, keys: &mut Vec<Vec<u8>>) {
match self.multi {
MultiBehaviour::First => {