Skip to content

Commit

Permalink
Fixed choice: Rework index-related imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jeltsch committed Jan 16, 2025
1 parent fe85945 commit 6cf13ec
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 25 deletions.
6 changes: 2 additions & 4 deletions src/Database/LSMTree/Internal/ChecksumHandle.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ import qualified Database.LSMTree.Internal.Chunk as Chunk (toByteString)
import Database.LSMTree.Internal.CRC32C (CRC32C)
import qualified Database.LSMTree.Internal.CRC32C as CRC
import Database.LSMTree.Internal.Entry
import Database.LSMTree.Internal.Index (Index)
import qualified Database.LSMTree.Internal.Index as Index (headerLBS)
import Database.LSMTree.Internal.Index.Some (Index)
import qualified Database.LSMTree.Internal.Index.Some as Index (finalLBS)
import Database.LSMTree.Internal.Index (IndexType, Index)
import qualified Database.LSMTree.Internal.Index as Index (headerLBS, finalLBS)
import Database.LSMTree.Internal.Paths (ForBlob (..), ForFilter (..),
ForIndex (..), ForKOps (..))
import qualified Database.LSMTree.Internal.RawBytes as RB
Expand Down
8 changes: 3 additions & 5 deletions src/Database/LSMTree/Internal/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ import Data.Word (Word64)
import Database.LSMTree.Internal.Assertions (assert,
fromIntegralChecked)
import Database.LSMTree.Internal.Entry (NumEntries (..))
import Database.LSMTree.Internal.Index (Index, IndexAcc)
import Database.LSMTree.Internal.Index.Compact (IndexCompact)
import Database.LSMTree.Internal.Index.CompactAcc (IndexCompactAcc)
import Database.LSMTree.Internal.Index.Ordinary (IndexOrdinary)
import Database.LSMTree.Internal.Index.OrdinaryAcc (IndexOrdinaryAcc)
import Database.LSMTree.Internal.Index (IndexType)
import qualified Database.LSMTree.Internal.Index as Index
(IndexType (Compact, Ordinary))
import Database.LSMTree.Internal.Run (RunDataCaching (..))
import Database.LSMTree.Internal.RunAcc (RunBloomFilterAlloc (..))
import GHC.Exts (Proxy#, proxy#)
Expand Down
4 changes: 2 additions & 2 deletions src/Database/LSMTree/Internal/Lookup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ import Control.RefCount

import Database.LSMTree.Internal.BlobRef (WeakBlobRef (..))
import Database.LSMTree.Internal.Entry
import Database.LSMTree.Internal.Index.Some (Index)
import qualified Database.LSMTree.Internal.Index.Some as Index (search)
import Database.LSMTree.Internal.Index (Index)
import qualified Database.LSMTree.Internal.Index as Index (search)
import Database.LSMTree.Internal.Page (PageSpan (..), getNumPages,
pageSpanSize, unPageNo)
import Database.LSMTree.Internal.RawBytes (RawBytes (..))
Expand Down
2 changes: 1 addition & 1 deletion src/Database/LSMTree/Internal/Merge.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import Data.Traversable (for)
import qualified Data.Vector as V
import Database.LSMTree.Internal.BlobRef (RawBlobRef)
import Database.LSMTree.Internal.Entry
import Database.LSMTree.Internal.Index (IndexAcc)
import Database.LSMTree.Internal.Index (IndexType)
import Database.LSMTree.Internal.Run (Run, RunDataCaching)
import qualified Database.LSMTree.Internal.Run as Run
import Database.LSMTree.Internal.RunAcc (RunBloomFilterAlloc (..))
Expand Down
2 changes: 1 addition & 1 deletion src/Database/LSMTree/Internal/MergeSchedule.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import Database.LSMTree.Internal.Assertions (assert)
import Database.LSMTree.Internal.Config
import Database.LSMTree.Internal.Entry (Entry, NumEntries (..),
unNumEntries)
import Database.LSMTree.Internal.Index.Some (Index)
import Database.LSMTree.Internal.Index (Index)
import Database.LSMTree.Internal.Lookup (ResolveSerialisedValue)
import qualified Database.LSMTree.Internal.Merge as Merge
import Database.LSMTree.Internal.MergingRun (MergePolicyForLevel (..),
Expand Down
2 changes: 1 addition & 1 deletion src/Database/LSMTree/Internal/MergingRun.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import Data.Primitive.PrimVar
import qualified Data.Vector as V
import Database.LSMTree.Internal.Assertions (assert)
import Database.LSMTree.Internal.Entry (NumEntries (..), unNumEntries)
import Database.LSMTree.Internal.Index (IndexAcc)
import Database.LSMTree.Internal.Index (IndexType)
import Database.LSMTree.Internal.Lookup (ResolveSerialisedValue)
import Database.LSMTree.Internal.Merge (Merge, StepResult (..))
import qualified Database.LSMTree.Internal.Merge as Merge
Expand Down
6 changes: 2 additions & 4 deletions src/Database/LSMTree/Internal/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ import qualified Database.LSMTree.Internal.BlobRef as BlobRef
import Database.LSMTree.Internal.BloomFilter (bloomFilterFromSBS)
import qualified Database.LSMTree.Internal.CRC32C as CRC
import Database.LSMTree.Internal.Entry (NumEntries (..))
import Database.LSMTree.Internal.Index (Index, IndexAcc)
import Database.LSMTree.Internal.Index.Some (Index)
import qualified Database.LSMTree.Internal.Index.Some as Index (fromSBS,
sizeInPages)
import Database.LSMTree.Internal.Index (IndexType, Index)
import qualified Database.LSMTree.Internal.Index as Index (fromSBS, sizeInPages)
import Database.LSMTree.Internal.Page (NumPages)
import Database.LSMTree.Internal.Paths as Paths
import Database.LSMTree.Internal.RunAcc (RunBloomFilterAlloc)
Expand Down
5 changes: 2 additions & 3 deletions src/Database/LSMTree/Internal/RunAcc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ import Database.LSMTree.Internal.Assertions (fromIntegralChecked)
import Database.LSMTree.Internal.BlobRef (BlobSpan (..))
import Database.LSMTree.Internal.Chunk (Chunk)
import Database.LSMTree.Internal.Entry (Entry (..), NumEntries (..))
import Database.LSMTree.Internal.Index (IndexAcc)
import Database.LSMTree.Internal.Index.Some (Index, IndexAcc)
import qualified Database.LSMTree.Internal.Index.Some as Index (appendMulti,
import Database.LSMTree.Internal.Index (IndexType, Index, IndexAcc)
import qualified Database.LSMTree.Internal.Index as Index (appendMulti,
appendSingle, newWithDefaults, unsafeEnd)
import Database.LSMTree.Internal.PageAcc (PageAcc)
import qualified Database.LSMTree.Internal.PageAcc as PageAcc
Expand Down
4 changes: 1 addition & 3 deletions src/Database/LSMTree/Internal/RunBuilder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ import Database.LSMTree.Internal.BlobRef (RawBlobRef)
import Database.LSMTree.Internal.ChecksumHandle
import qualified Database.LSMTree.Internal.CRC32C as CRC
import Database.LSMTree.Internal.Entry
import Database.LSMTree.Internal.Index (IndexAcc,
resultingIndexTypeProxy)
import Database.LSMTree.Internal.Index.Some (Index)
import Database.LSMTree.Internal.Index (IndexType, Index)
import Database.LSMTree.Internal.Paths
import Database.LSMTree.Internal.RawOverflowPage (RawOverflowPage)
import Database.LSMTree.Internal.RawPage (RawPage)
Expand Down
2 changes: 1 addition & 1 deletion src/Database/LSMTree/Internal/RunReader.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import Database.LSMTree.Internal.BitMath (ceilDivPageSize,
import Database.LSMTree.Internal.BlobFile as BlobFile
import Database.LSMTree.Internal.BlobRef as BlobRef
import qualified Database.LSMTree.Internal.Entry as E
import qualified Database.LSMTree.Internal.Index.Some as Index (search)
import qualified Database.LSMTree.Internal.Index as Index (search)
import Database.LSMTree.Internal.Page (PageNo (..), PageSpan (..),
getNumPages, nextPageNo)
import Database.LSMTree.Internal.Paths
Expand Down

0 comments on commit 6cf13ec

Please sign in to comment.