We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2674d48 commit 0b2d80cCopy full SHA for 0b2d80c
src/main/java/com/bhatmanr/invindex/comparisons/dictionaryimpl/HashDictionaryIndex.java
@@ -0,0 +1,24 @@
1
+package com.bhatmanr.invindex.comparisons.dictionaryimpl;
2
+
3
+import java.util.HashMap;
4
+import java.util.Map;
5
6
+public class HashDictionaryIndex implements DictionaryIndexObserver {
7
8
+ private static Map<String, String> hashTermIndex = new HashMap<String, String>();
9
+ private Subject indexHandler;
10
11
+ public HashDictionaryIndex(Subject indxHndlr) {
12
+ this.indexHandler = indxHndlr;
13
+ indexHandler.RegisterObserverIndex(this);
14
+ }
15
16
17
+ public void UpdateIndex(String term, String docId) {
18
+ hashTermIndex.put(term,docId);
19
20
21
+ public void SearchIndex(String term) {
22
23
24
+}
0 commit comments