Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXP: open up the RocksDB to playing about #3468

Open
wants to merge 4 commits into
base: latest
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/src/index/revindex/disk_revindex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn compute_color(idxs: &Datasets) -> Color {

#[derive(Clone)]
pub struct RevIndex {
db: Arc<DB>,
pub db: Arc<DB>,
collection: Arc<CollectionSet>,
processed: Arc<RwLock<Datasets>>,
}
Expand Down
6 changes: 3 additions & 3 deletions src/core/src/index/revindex/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
}

impl Datasets {
fn new(vals: &[Idx]) -> Self {
pub fn new(vals: &[Idx]) -> Self {
if vals.is_empty() {
Self::Empty
} else if vals.len() == 1 {
Expand All @@ -287,7 +287,7 @@
}
}

fn from_slice(slice: &[u8]) -> Option<Self> {
pub fn from_slice(slice: &[u8]) -> Option<Self> {
use byteorder::ReadBytesExt;

if slice.len() == 8 {
Expand Down Expand Up @@ -344,7 +344,7 @@
}
}

fn len(&self) -> usize {
pub fn len(&self) -> usize {

Check warning on line 347 in src/core/src/index/revindex/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/core/src/index/revindex/mod.rs#L347

Added line #L347 was not covered by tests
match self {
Self::Empty => 0,
Self::Unique(_) => 1,
Expand Down
Loading