@@ -24,7 +24,7 @@ module Database.LSMTree.Internal.Config (
2424 , defaultBloomFilterAlloc
2525 , bloomFilterAllocForLevel
2626 -- * Fence pointer index
27- , FencePointerIndex (.. )
27+ , FencePointerIndexType (.. )
2828 , indexTypeForRun
2929 -- * Disk cache policy
3030 , DiskCachePolicy (.. )
@@ -71,7 +71,7 @@ data TableConfig = TableConfig {
7171 -- applications.
7272 , confWriteBufferAlloc :: ! WriteBufferAlloc
7373 , confBloomFilterAlloc :: ! BloomFilterAlloc
74- , confFencePointerIndex :: ! FencePointerIndex
74+ , confFencePointerIndex :: ! FencePointerIndexType
7575 -- | The policy for caching key\/value data from disk in memory.
7676 , confDiskCachePolicy :: ! DiskCachePolicy
7777 , confMergeSchedule :: ! MergeSchedule
@@ -240,7 +240,7 @@ bloomFilterAllocForLevel conf _levelNo =
240240-------------------------------------------------------------------------------}
241241
242242-- | Configure the type of fence pointer index.
243- data FencePointerIndex =
243+ data FencePointerIndexType =
244244 -- | Use a compact fence pointer index.
245245 --
246246 -- Compact indexes are designed to work with keys that are large (for
@@ -263,11 +263,11 @@ data FencePointerIndex =
263263 | OrdinaryIndex
264264 deriving stock (Eq , Show )
265265
266- instance NFData FencePointerIndex where
266+ instance NFData FencePointerIndexType where
267267 rnf CompactIndex = ()
268268 rnf OrdinaryIndex = ()
269269
270- indexTypeForRun :: FencePointerIndex -> IndexType
270+ indexTypeForRun :: FencePointerIndexType -> IndexType
271271indexTypeForRun CompactIndex = Index. Compact
272272indexTypeForRun OrdinaryIndex = Index. Ordinary
273273
0 commit comments