mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-07 01:32:53 +00:00
Expose inner file slice
This commit is contained in:
@@ -128,7 +128,8 @@ impl SegmentReader {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn fieldnorms_readers(&self) -> &FieldNormReaders {
|
#[doc(hidden)]
|
||||||
|
pub fn fieldnorms_readers(&self) -> &FieldNormReaders {
|
||||||
&self.fieldnorm_readers
|
&self.fieldnorm_readers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,11 @@ impl FieldNormReaders {
|
|||||||
pub fn space_usage(&self) -> PerFieldSpaceUsage {
|
pub fn space_usage(&self) -> PerFieldSpaceUsage {
|
||||||
self.data.space_usage()
|
self.data.space_usage()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns a handle to inner file
|
||||||
|
pub fn get_inner_file(&self) -> Arc<CompositeFile> {
|
||||||
|
self.data.clone()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reads the fieldnorm associated to a document.
|
/// Reads the fieldnorm associated to a document.
|
||||||
|
|||||||
Reference in New Issue
Block a user