|
VIBE v5.1.6
Search Engine
|
Public Member Functions | |
| ThreadSafeInvertedIndexBuilder (ThreadSafeInvertedIndex invertedIndex, WorkQueue queue) | |
| void | build (Path input) throws IOException |
| void | readFile (Path file) |
| String | toString () |
Public Member Functions inherited from edu.usfca.cs272.InvertedIndexBuilder | |
| InvertedIndexBuilder (InvertedIndex invertedIndex) | |
| void | readDirectory (Path directory) throws IOException |
Additional Inherited Members | |
Static Public Member Functions inherited from edu.usfca.cs272.InvertedIndexBuilder | |
| static void | readFile (Path file, InvertedIndex index) throws IOException |
| static boolean | fileIsTXT (Path path) |
Thread-safe version of the Inverted index
| edu.usfca.cs272.ThreadSafeInvertedIndexBuilder.ThreadSafeInvertedIndexBuilder | ( | ThreadSafeInvertedIndex | invertedIndex, |
| WorkQueue | queue ) |
Creates a new ThreadSafeInvertedIndexBuilder
| invertedIndex | the index. |
| queue | workqueue |
| void edu.usfca.cs272.ThreadSafeInvertedIndexBuilder.build | ( | Path | input | ) | throws IOException |
Triggers the build for the index.
| input | Path of input file. |
| IOException | if file can't be read. |
Reimplemented from edu.usfca.cs272.InvertedIndexBuilder.
| void edu.usfca.cs272.ThreadSafeInvertedIndexBuilder.readFile | ( | Path | file | ) |
Reads text file to populate index.
| file | path of file |
| IOException | if file is not found. |
Reimplemented from edu.usfca.cs272.InvertedIndexBuilder.
| String edu.usfca.cs272.ThreadSafeInvertedIndexBuilder.toString | ( | ) |
to Stirng for the index builder
Reimplemented from edu.usfca.cs272.InvertedIndexBuilder.