|
VIBE v5.1.6
Search Engine
|
Public Member Functions | |
| InvertedIndexBuilder (InvertedIndex invertedIndex) | |
| void | build (Path input) throws IOException |
| void | readDirectory (Path directory) throws IOException |
| void | readFile (Path file) throws IOException |
| String | toString () |
Static Public Member Functions | |
| static void | readFile (Path file, InvertedIndex index) throws IOException |
| static boolean | fileIsTXT (Path path) |
InvertedIndexBuilder Class for the Search Engine Project.
| edu.usfca.cs272.InvertedIndexBuilder.InvertedIndexBuilder | ( | InvertedIndex | invertedIndex | ) |
Constructor for InvertedIndexBuilder Class.
| invertedIndex | InvertedIndex |
| void edu.usfca.cs272.InvertedIndexBuilder.build | ( | Path | input | ) | throws IOException |
Triggers the build for the index.
| input | Path of input file. |
| IOException | if file can't be read. |
Reimplemented in edu.usfca.cs272.ThreadSafeInvertedIndexBuilder.
|
static |
Validates file extension
| path | of file |
| void edu.usfca.cs272.InvertedIndexBuilder.readDirectory | ( | Path | directory | ) | throws IOException |
Reads text files in a directory or nested directories.
| directory | directory path |
| IOException | if unable to read directory. |
| void edu.usfca.cs272.InvertedIndexBuilder.readFile | ( | Path | file | ) | throws IOException |
Reads text file to populate index.
| file | path of file |
| IOException | if file is not found. |
Reimplemented in edu.usfca.cs272.ThreadSafeInvertedIndexBuilder.
|
static |
reads text file to populate InvertedIndex.
| file | path of text file. |
| index | Inverted index to populate |
| IOException | if unable to read file. |
| String edu.usfca.cs272.InvertedIndexBuilder.toString | ( | ) |
to Stirng for the index builder
Reimplemented in edu.usfca.cs272.ThreadSafeInvertedIndexBuilder.