Exposing the remaining API

This commit is contained in:
Paul Masurel
2017-05-24 21:59:51 +09:00
parent 511bd25a31
commit 29bf740ddf
4 changed files with 29 additions and 4 deletions

View File

@@ -70,6 +70,10 @@ impl SegmentReader {
self.segment_meta.num_docs()
}
pub fn schema(&self) -> &Schema {
&self.schema
}
/// Return the number of documents that have been
/// deleted in the segment.
pub fn num_deleted_docs(&self) -> DocId {