Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Nov 2, 2024
1 parent 3e5e034 commit b3b0d3b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/segment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -75,6 +71,7 @@ impl std::fmt::Debug for Segment {

impl Segment {
pub(crate) fn verify(&self) -> crate::Result<usize> {
use block::checksum::Checksum;
use block_index::IndexBlock;
use value_block::ValueBlock;

Expand Down Expand Up @@ -170,6 +167,7 @@ impl Segment {
block_cache: Arc<BlockCache>,
descriptor_table: Arc<FileDescriptorTable>,
) -> crate::Result<Self> {
use block_index::two_level_index::TwoLevelBlockIndex;
use trailer::SegmentFileTrailer;

let file_path = file_path.as_ref();
Expand Down Expand Up @@ -253,7 +251,9 @@ impl Segment {
key: K,
seqno: Option<SeqNo>,
) -> crate::Result<Option<InternalValue>> {
use crate::{mvcc_stream::MvccStream, ValueType};
use value_block::{CachePolicy, ValueBlock};
use value_block_consumer::ValueBlockConsumer;

let key = key.as_ref();

Expand Down

0 comments on commit b3b0d3b

Please sign in to comment.