-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement method to get size of table in IndexManager
- Loading branch information
Showing
7 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/main/java/com/github/sepgh/internal/index/BloomIndexManagerDecorator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.github.sepgh.internal.index; | ||
|
||
import com.github.sepgh.internal.index.tree.node.BaseTreeNode; | ||
import com.github.sepgh.internal.storage.IndexStorageManager; | ||
|
||
import java.io.IOException; | ||
import java.util.Optional; | ||
import java.util.concurrent.ExecutionException; | ||
|
||
public class BloomIndexManagerDecorator extends IndexManagerDecorator { | ||
|
||
private final IndexStorageManager indexStorageManager; | ||
|
||
public BloomIndexManagerDecorator(IndexManager indexManager, int size, double tolerance, IndexStorageManager indexStorageManager) { | ||
super(indexManager); | ||
this.indexStorageManager = indexStorageManager; | ||
|
||
} | ||
|
||
@Override | ||
public BaseTreeNode addIndex(int table, long identifier, Pointer pointer) throws ExecutionException, InterruptedException, IOException { | ||
return super.addIndex(table, identifier, pointer); | ||
} | ||
|
||
@Override | ||
public Optional<Pointer> getIndex(int table, long identifier) throws ExecutionException, InterruptedException, IOException { | ||
return super.getIndex(table, identifier); | ||
} | ||
|
||
@Override | ||
public boolean removeIndex(int table, long identifier) throws ExecutionException, InterruptedException, IOException { | ||
return super.removeIndex(table, identifier); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters