Skip to content

Commit

Permalink
renamed mightContainKeyIndex to mightContainIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
simerplaha committed Oct 5, 2020
1 parent d24bb15 commit 760403d
Show file tree
Hide file tree
Showing 27 changed files with 80 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ object DefaultEventuallyPersistentConfig extends LazyLogging {
persistentLevelSortedKeyIndex: SortedKeyIndex,
persistentLevelRandomSearchIndex: RandomSearchIndex,
persistentLevelBinarySearchIndex: BinarySearchIndex,
persistentLevelMightContainKeyIndex: MightContainIndex,
persistentLevelMightContainIndex: MightContainIndex,
persistentLevelValuesConfig: ValuesConfig,
persistentLevelSegmentConfig: SegmentConfig,
acceleration: LevelZeroMeter => Accelerator,
Expand Down Expand Up @@ -92,7 +92,7 @@ object DefaultEventuallyPersistentConfig extends LazyLogging {
sortedKeyIndex = persistentLevelSortedKeyIndex,
randomSearchIndex = persistentLevelRandomSearchIndex,
binarySearchIndex = persistentLevelBinarySearchIndex,
mightContainKey = persistentLevelMightContainKeyIndex,
mightContainKey = persistentLevelMightContainIndex,
valuesConfig = persistentLevelValuesConfig,
segmentConfig = persistentLevelSegmentConfig,
compactionExecutionContext = CompactionExecutionContext.Create(executionContext),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object DefaultPersistentConfig extends LazyLogging {
sortedKeyIndex: SortedKeyIndex,
randomSearchIndex: RandomSearchIndex,
binarySearchIndex: BinarySearchIndex,
mightContainKeyIndex: MightContainIndex,
mightContainIndex: MightContainIndex,
valuesConfig: ValuesConfig,
segmentConfig: SegmentConfig,
optimiseWrites: OptimiseWrites,
Expand All @@ -77,7 +77,7 @@ object DefaultPersistentConfig extends LazyLogging {
sortedKeyIndex = sortedKeyIndex,
randomSearchIndex = randomSearchIndex,
binarySearchIndex = binarySearchIndex,
mightContainKeyIndex = mightContainKeyIndex,
mightContainIndex = mightContainIndex,
valuesConfig = valuesConfig,
segmentConfig = segmentConfig,
compactionExecutionContext = CompactionExecutionContext.Shared,
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/swaydb/core/CoreInitializer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private[core] object CoreInitializer extends LazyLogging {
implicit val forceSaveApplier: ForceSaveApplier = ForceSaveApplier.Enabled

Level(
bloomFilterConfig = BloomFilterBlock.Config(config = config.mightContainKeyIndex),
bloomFilterConfig = BloomFilterBlock.Config(config = config.mightContainIndex),
hashIndexConfig = block.hashindex.HashIndexBlock.Config(config = config.randomSearchIndex),
binarySearchIndexConfig = block.binarysearch.BinarySearchIndexBlock.Config(config = config.binarySearchIndex),
sortedIndexConfig = SortedIndexBlock.Config(config.sortedKeyIndex),
Expand Down
18 changes: 9 additions & 9 deletions data/src/main/scala/swaydb/data/config/ConfigWizard.scala
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ case class PersistentLevelZeroConfig private(mapSize: Long,
sortedKeyIndex: SortedKeyIndex,
randomSearchIndex: RandomSearchIndex,
binarySearchIndex: BinarySearchIndex,
mightContainKeyIndex: MightContainIndex,
mightContainIndex: MightContainIndex,
valuesConfig: ValuesConfig,
segmentConfig: SegmentConfig,
compactionExecutionContext: CompactionExecutionContext,
Expand All @@ -137,7 +137,7 @@ case class PersistentLevelZeroConfig private(mapSize: Long,
sortedKeyIndex = sortedKeyIndex,
randomSearchIndex = randomSearchIndex,
binarySearchIndex = binarySearchIndex,
mightContainKeyIndex = mightContainKeyIndex,
mightContainIndex = mightContainIndex,
valuesConfig = valuesConfig,
segmentConfig = segmentConfig,
compactionExecutionContext = compactionExecutionContext,
Expand Down Expand Up @@ -218,7 +218,7 @@ case class MemoryLevelZeroConfig(mapSize: Long,
sortedKeyIndex = sortedKeyIndex,
randomSearchIndex = randomSearchIndex,
binarySearchIndex = binarySearchIndex,
mightContainKeyIndex = mightContainKey,
mightContainIndex = mightContainKey,
valuesConfig = valuesConfig,
segmentConfig = segmentConfig,
compactionExecutionContext = compactionExecutionContext,
Expand Down Expand Up @@ -309,7 +309,7 @@ case class PersistentLevelConfig(dir: Path,
sortedKeyIndex: SortedKeyIndex,
randomSearchIndex: RandomSearchIndex,
binarySearchIndex: BinarySearchIndex,
mightContainKeyIndex: MightContainIndex,
mightContainIndex: MightContainIndex,
valuesConfig: ValuesConfig,
segmentConfig: SegmentConfig,
compactionExecutionContext: CompactionExecutionContext,
Expand Down Expand Up @@ -338,8 +338,8 @@ case class PersistentLevelConfig(dir: Path,
def copyWithBinarySearchIndex(binarySearchIndex: BinarySearchIndex) =
this.copy(binarySearchIndex = binarySearchIndex)

def copyWithMightContainKeyIndex(mightContainKeyIndex: MightContainIndex) =
this.copy(mightContainKeyIndex = mightContainKeyIndex)
def copyWithMightContainIndex(mightContainIndex: MightContainIndex) =
this.copy(mightContainIndex = mightContainIndex)

def copyWithValuesConfig(valuesConfig: ValuesConfig) =
this.copy(valuesConfig = valuesConfig)
Expand Down Expand Up @@ -410,7 +410,7 @@ case class SwayDBMemoryConfig(level0: MemoryLevelZeroConfig,
sortedKeyIndex = sortedKeyIndex,
randomSearchIndex = randomSearchIndex,
binarySearchIndex = binarySearchIndex,
mightContainKeyIndex = mightContainKey,
mightContainIndex = mightContainKey,
valuesConfig = valuesConfig,
segmentConfig = segmentConfig,
compactionExecutionContext = compactionExecutionContext,
Expand Down Expand Up @@ -460,7 +460,7 @@ case class SwayDBPersistentConfig(level0: LevelZeroConfig,
sortedKeyIndex: SortedKeyIndex,
randomSearchIndex: RandomSearchIndex,
binarySearchIndex: BinarySearchIndex,
mightContainKeyIndex: MightContainIndex,
mightContainIndex: MightContainIndex,
valuesConfig: ValuesConfig,
segmentConfig: SegmentConfig,
compactionExecutionContext: CompactionExecutionContext,
Expand All @@ -475,7 +475,7 @@ case class SwayDBPersistentConfig(level0: LevelZeroConfig,
sortedKeyIndex = sortedKeyIndex,
randomSearchIndex = randomSearchIndex,
binarySearchIndex = binarySearchIndex,
mightContainKeyIndex = mightContainKeyIndex,
mightContainIndex = mightContainIndex,
valuesConfig = valuesConfig,
segmentConfig = segmentConfig,
compactionExecutionContext = compactionExecutionContext,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PersistentLevelConfigBuilder {
private var sortedKeyIndex: SortedKeyIndex = _
private var randomSearchIndex: RandomSearchIndex = _
private var binarySearchIndex: BinarySearchIndex = _
private var mightContainKeyIndex: MightContainIndex = _
private var mightContainIndex: MightContainIndex = _
private var valuesConfig: ValuesConfig = _
private var segmentConfig: SegmentConfig = _
private var compactionExecutionContext: CompactionExecutionContext = _
Expand Down Expand Up @@ -110,8 +110,8 @@ object PersistentLevelConfigBuilder {
}

class Step7(builder: PersistentLevelConfigBuilder) {
def mightContainKeyIndex(mightContainKeyIndex: MightContainIndex) = {
builder.mightContainKeyIndex = mightContainKeyIndex
def mightContainIndex(mightContainIndex: MightContainIndex) = {
builder.mightContainIndex = mightContainIndex
new Step8(builder)
}
}
Expand Down Expand Up @@ -147,7 +147,7 @@ object PersistentLevelConfigBuilder {
sortedKeyIndex = builder.sortedKeyIndex,
randomSearchIndex = builder.randomSearchIndex,
binarySearchIndex = builder.binarySearchIndex,
mightContainKeyIndex = builder.mightContainKeyIndex,
mightContainIndex = builder.mightContainIndex,
valuesConfig = builder.valuesConfig,
segmentConfig = builder.segmentConfig,
compactionExecutionContext = builder.compactionExecutionContext,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ object EventuallyPersistentMap {
private var persistentLevelSortedKeyIndex: SortedKeyIndex = DefaultConfigs.sortedKeyIndex(),
private var persistentLevelRandomSearchIndex: RandomSearchIndex = DefaultConfigs.randomSearchIndex(),
private var binarySearchIndex: BinarySearchIndex = DefaultConfigs.binarySearchIndex(),
private var mightContainKeyIndex: MightContainIndex = DefaultConfigs.mightContainKeyIndex(),
private var mightContainIndex: MightContainIndex = DefaultConfigs.mightContainIndex(),
private var valuesConfig: ValuesConfig = DefaultConfigs.valuesConfig(),
private var segmentConfig: SegmentConfig = DefaultConfigs.segmentConfig(),
private var fileCache: FileCache.Enable = DefaultConfigs.fileCache(DefaultExecutionContext.sweeperEC),
Expand Down Expand Up @@ -168,8 +168,8 @@ object EventuallyPersistentMap {
this
}

def setMightContainKeyIndex(mightContainKeyIndex: MightContainIndex) = {
this.mightContainKeyIndex = mightContainKeyIndex
def setMightContainIndex(mightContainIndex: MightContainIndex) = {
this.mightContainIndex = mightContainIndex
this
}

Expand Down Expand Up @@ -243,7 +243,7 @@ object EventuallyPersistentMap {
persistentLevelSortedKeyIndex = persistentLevelSortedKeyIndex,
persistentLevelRandomSearchIndex = persistentLevelRandomSearchIndex,
binarySearchIndex = binarySearchIndex,
mightContainKeyIndex = mightContainKeyIndex,
mightContainIndex = mightContainIndex,
valuesConfig = valuesConfig,
segmentConfig = segmentConfig,
fileCache = fileCache,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ object EventuallyPersistentMultiMap {
private var persistentLevelSortedKeyIndex: SortedKeyIndex = DefaultConfigs.sortedKeyIndex(),
private var persistentLevelRandomSearchIndex: RandomSearchIndex = DefaultConfigs.randomSearchIndex(),
private var binarySearchIndex: BinarySearchIndex = DefaultConfigs.binarySearchIndex(),
private var mightContainKeyIndex: MightContainIndex = DefaultConfigs.mightContainKeyIndex(),
private var mightContainIndex: MightContainIndex = DefaultConfigs.mightContainIndex(),
private var valuesConfig: ValuesConfig = DefaultConfigs.valuesConfig(),
private var segmentConfig: SegmentConfig = DefaultConfigs.segmentConfig(),
private var fileCache: FileCache.Enable = DefaultConfigs.fileCache(DefaultExecutionContext.sweeperEC),
Expand Down Expand Up @@ -169,8 +169,8 @@ object EventuallyPersistentMultiMap {
this
}

def setMightContainKeyIndex(mightContainKeyIndex: MightContainIndex) = {
this.mightContainKeyIndex = mightContainKeyIndex
def setMightContainIndex(mightContainIndex: MightContainIndex) = {
this.mightContainIndex = mightContainIndex
this
}

Expand Down Expand Up @@ -244,7 +244,7 @@ object EventuallyPersistentMultiMap {
persistentLevelSortedKeyIndex = persistentLevelSortedKeyIndex,
persistentLevelRandomSearchIndex = persistentLevelRandomSearchIndex,
binarySearchIndex = binarySearchIndex,
mightContainKeyIndex = mightContainKeyIndex,
mightContainIndex = mightContainIndex,
valuesConfig = valuesConfig,
segmentConfig = segmentConfig,
fileCache = fileCache,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ object EventuallyPersistentQueue {
private var persistentLevelSortedKeyIndex: SortedKeyIndex = DefaultConfigs.sortedKeyIndex(),
private var persistentLevelRandomSearchIndex: RandomSearchIndex = DefaultConfigs.randomSearchIndex(),
private var binarySearchIndex: BinarySearchIndex = DefaultConfigs.binarySearchIndex(),
private var mightContainKeyIndex: MightContainIndex = DefaultConfigs.mightContainKeyIndex(),
private var mightContainIndex: MightContainIndex = DefaultConfigs.mightContainIndex(),
private var valuesConfig: ValuesConfig = DefaultConfigs.valuesConfig(),
private var segmentConfig: SegmentConfig = DefaultConfigs.segmentConfig(),
private var fileCache: FileCache.Enable = DefaultConfigs.fileCache(DefaultExecutionContext.sweeperEC),
Expand Down Expand Up @@ -150,8 +150,8 @@ object EventuallyPersistentQueue {
this
}

def setMightContainKeyIndex(mightContainKeyIndex: MightContainIndex) = {
this.mightContainKeyIndex = mightContainKeyIndex
def setMightContainIndex(mightContainIndex: MightContainIndex) = {
this.mightContainIndex = mightContainIndex
this
}

Expand Down Expand Up @@ -214,7 +214,7 @@ object EventuallyPersistentQueue {
persistentLevelSortedKeyIndex = persistentLevelSortedKeyIndex,
persistentLevelRandomSearchIndex = persistentLevelRandomSearchIndex,
binarySearchIndex = binarySearchIndex,
mightContainKeyIndex = mightContainKeyIndex,
mightContainIndex = mightContainIndex,
valuesConfig = valuesConfig,
segmentConfig = segmentConfig,
fileCache = fileCache,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ object EventuallyPersistentSet {
private var persistentLevelSortedKeyIndex: SortedKeyIndex = DefaultConfigs.sortedKeyIndex(),
private var persistentLevelRandomSearchIndex: RandomSearchIndex = DefaultConfigs.randomSearchIndex(),
private var binarySearchIndex: BinarySearchIndex = DefaultConfigs.binarySearchIndex(),
private var mightContainKeyIndex: MightContainIndex = DefaultConfigs.mightContainKeyIndex(),
private var mightContainIndex: MightContainIndex = DefaultConfigs.mightContainIndex(),
private var valuesConfig: ValuesConfig = DefaultConfigs.valuesConfig(),
private var segmentConfig: SegmentConfig = DefaultConfigs.segmentConfig(),
private var fileCache: FileCache.Enable = DefaultConfigs.fileCache(DefaultExecutionContext.sweeperEC),
Expand Down Expand Up @@ -167,8 +167,8 @@ object EventuallyPersistentSet {
this
}

def setMightContainKeyIndex(mightContainKeyIndex: MightContainIndex) = {
this.mightContainKeyIndex = mightContainKeyIndex
def setMightContainIndex(mightContainIndex: MightContainIndex) = {
this.mightContainIndex = mightContainIndex
this
}

Expand Down Expand Up @@ -242,7 +242,7 @@ object EventuallyPersistentSet {
persistentLevelSortedKeyIndex = persistentLevelSortedKeyIndex,
persistentLevelRandomSearchIndex = persistentLevelRandomSearchIndex,
binarySearchIndex = binarySearchIndex,
mightContainKeyIndex = mightContainKeyIndex,
mightContainIndex = mightContainIndex,
valuesConfig = valuesConfig,
segmentConfig = segmentConfig,
fileCache = fileCache,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ object EventuallyPersistentSetMap {
private var persistentLevelSortedKeyIndex: SortedKeyIndex = DefaultConfigs.sortedKeyIndex(),
private var persistentLevelRandomSearchIndex: RandomSearchIndex = DefaultConfigs.randomSearchIndex(),
private var binarySearchIndex: BinarySearchIndex = DefaultConfigs.binarySearchIndex(),
private var mightContainKeyIndex: MightContainIndex = DefaultConfigs.mightContainKeyIndex(),
private var mightContainIndex: MightContainIndex = DefaultConfigs.mightContainIndex(),
private var valuesConfig: ValuesConfig = DefaultConfigs.valuesConfig(),
private var segmentConfig: SegmentConfig = DefaultConfigs.segmentConfig(),
private var fileCache: FileCache.Enable = DefaultConfigs.fileCache(DefaultExecutionContext.sweeperEC),
Expand Down Expand Up @@ -153,8 +153,8 @@ object EventuallyPersistentSetMap {
this
}

def setMightContainKeyIndex(mightContainKeyIndex: MightContainIndex) = {
this.mightContainKeyIndex = mightContainKeyIndex
def setMightContainIndex(mightContainIndex: MightContainIndex) = {
this.mightContainIndex = mightContainIndex
this
}

Expand Down Expand Up @@ -226,7 +226,7 @@ object EventuallyPersistentSetMap {
persistentLevelSortedKeyIndex = persistentLevelSortedKeyIndex,
persistentLevelRandomSearchIndex = persistentLevelRandomSearchIndex,
binarySearchIndex = binarySearchIndex,
mightContainKeyIndex = mightContainKeyIndex,
mightContainIndex = mightContainIndex,
valuesConfig = valuesConfig,
segmentConfig = segmentConfig,
fileCache = fileCache,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object PersistentMap {
private var randomSearchIndex: RandomSearchIndex = DefaultConfigs.randomSearchIndex(),
private var optimiseWrites: OptimiseWrites = DefaultConfigs.optimiseWrites(),
private var binarySearchIndex: BinarySearchIndex = DefaultConfigs.binarySearchIndex(),
private var mightContainKeyIndex: MightContainIndex = DefaultConfigs.mightContainKeyIndex(),
private var mightContainIndex: MightContainIndex = DefaultConfigs.mightContainIndex(),
private var valuesConfig: ValuesConfig = DefaultConfigs.valuesConfig(),
private var segmentConfig: SegmentConfig = DefaultConfigs.segmentConfig(),
private var fileCache: FileCache.Enable = DefaultConfigs.fileCache(DefaultExecutionContext.sweeperEC),
Expand Down Expand Up @@ -159,8 +159,8 @@ object PersistentMap {
this
}

def setMightContainKeyIndex(mightContainKeyIndex: MightContainIndex) = {
this.mightContainKeyIndex = mightContainKeyIndex
def setMightContainIndex(mightContainIndex: MightContainIndex) = {
this.mightContainIndex = mightContainIndex
this
}

Expand Down Expand Up @@ -267,7 +267,7 @@ object PersistentMap {
sortedKeyIndex = sortedKeyIndex,
randomSearchIndex = randomSearchIndex,
binarySearchIndex = binarySearchIndex,
mightContainKeyIndex = mightContainKeyIndex,
mightContainIndex = mightContainIndex,
valuesConfig = valuesConfig,
segmentConfig = segmentConfig,
fileCache = fileCache,
Expand Down
Loading

0 comments on commit 760403d

Please sign in to comment.