Current Forum: Homework 5 - Part 3 |
Date: Sun Nov 18 2001 4:58 am |
Author: Chen, Richard <richardc@andrew.cmu.edu> |
Subject: Re: makeIndex() |
|
|
I disagree with myself. I now believe that makeIndex() must be implemented in full since WebSearch.java does (namely): WebIndex w=new WebIndex(); w.makeIndex(); //skip irrelevant lines to the question-at-hand w.restore(indexSource); Iterator i=w.retrievePages(new ObjectIterator(v));
Note that makeIndex() in WebIndex.java must make the Index since nowhere in WebSearch.java is addPage() called. Therefore, if makeIndex() is not implemented, then WebSearch.java will not be able to obtain an index structure.
Are my statements true or false? |
|