diff --git a/src/segment/mod.rs b/src/segment/mod.rs index 996336d6..7e3cba2f 100644 --- a/src/segment/mod.rs +++ b/src/segment/mod.rs @@ -20,14 +20,10 @@ pub mod writer; use crate::{ block_cache::BlockCache, descriptor_table::FileDescriptorTable, - mvcc_stream::MvccStream, - segment::{reader::Reader, value_block_consumer::ValueBlockConsumer}, + segment::reader::Reader, tree::inner::TreeId, value::{InternalValue, SeqNo, UserKey}, - ValueType, }; -use block::checksum::Checksum; -use block_index::two_level_index::TwoLevelBlockIndex; use inner::Inner; use range::Range; use std::{ops::Bound, path::Path, sync::Arc}; @@ -75,6 +71,7 @@ impl std::fmt::Debug for Segment { impl Segment { pub(crate) fn verify(&self) -> crate::Result { + use block::checksum::Checksum; use block_index::IndexBlock; use value_block::ValueBlock; @@ -170,6 +167,7 @@ impl Segment { block_cache: Arc, descriptor_table: Arc, ) -> crate::Result { + use block_index::two_level_index::TwoLevelBlockIndex; use trailer::SegmentFileTrailer; let file_path = file_path.as_ref(); @@ -253,7 +251,9 @@ impl Segment { key: K, seqno: Option, ) -> crate::Result> { + use crate::{mvcc_stream::MvccStream, ValueType}; use value_block::{CachePolicy, ValueBlock}; + use value_block_consumer::ValueBlockConsumer; let key = key.as_ref();