MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / new

Method new

src/structures/inverted_index.rs:150–153  ·  view source on GitHub ↗
(path: PathBuf)

Source from the content-addressed store, hash-verified

148
149impl InvertedIndex {
150 pub fn new(path: PathBuf) -> Self {
151 let tree = Tree::new(path.clone()).expect("Failed to create tree");
152 InvertedIndex { path, tree }
153 }
154
155 pub fn insert(&mut self, key: KVPair, value: InvertedIndexItem, skip_compression: bool) {
156 // println!("Inserting INTO INVERTED INDEX: {:?}", key);

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected