|
|
@ -449,10 +449,13 @@ impl Iterator for SPOGIndexIterator { |
|
|
|
|
|
|
|
|
|
|
|
fn next(&mut self) -> Option<Result<EncodedQuad>> { |
|
|
|
fn next(&mut self) -> Option<Result<EncodedQuad>> { |
|
|
|
self.iter.next(); |
|
|
|
self.iter.next(); |
|
|
|
|
|
|
|
unsafe { |
|
|
|
|
|
|
|
//This is safe because we are not keeping the buffer
|
|
|
|
self.iter |
|
|
|
self.iter |
|
|
|
.key() |
|
|
|
.key_inner() |
|
|
|
.map(|buffer| Cursor::new(buffer).read_spog_quad()) |
|
|
|
.map(|buffer| Cursor::new(buffer).read_spog_quad()) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
pub struct POSGIndexIterator { |
|
|
|
pub struct POSGIndexIterator { |
|
|
@ -464,10 +467,13 @@ impl Iterator for POSGIndexIterator { |
|
|
|
|
|
|
|
|
|
|
|
fn next(&mut self) -> Option<Result<EncodedQuad>> { |
|
|
|
fn next(&mut self) -> Option<Result<EncodedQuad>> { |
|
|
|
self.iter.next(); |
|
|
|
self.iter.next(); |
|
|
|
|
|
|
|
unsafe { |
|
|
|
|
|
|
|
//This is safe because we are not keeping the buffer
|
|
|
|
self.iter |
|
|
|
self.iter |
|
|
|
.key() |
|
|
|
.key_inner() |
|
|
|
.map(|buffer| Cursor::new(buffer).read_posg_quad()) |
|
|
|
.map(|buffer| Cursor::new(buffer).read_posg_quad()) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
pub struct OSPGIndexIterator { |
|
|
|
pub struct OSPGIndexIterator { |
|
|
@ -479,10 +485,13 @@ impl Iterator for OSPGIndexIterator { |
|
|
|
|
|
|
|
|
|
|
|
fn next(&mut self) -> Option<Result<EncodedQuad>> { |
|
|
|
fn next(&mut self) -> Option<Result<EncodedQuad>> { |
|
|
|
self.iter.next(); |
|
|
|
self.iter.next(); |
|
|
|
|
|
|
|
unsafe { |
|
|
|
|
|
|
|
//This is safe because we are not keeping the buffer
|
|
|
|
self.iter |
|
|
|
self.iter |
|
|
|
.key() |
|
|
|
.key_inner() |
|
|
|
.map(|buffer| Cursor::new(buffer).read_ospg_quad()) |
|
|
|
.map(|buffer| Cursor::new(buffer).read_ospg_quad()) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
pub struct FilteringEncodedQuadsIterator<I: Iterator<Item = Result<EncodedQuad>>> { |
|
|
|
pub struct FilteringEncodedQuadsIterator<I: Iterator<Item = Result<EncodedQuad>>> { |
|
|
|