Class wais.WAISDocuments
All Packages Class Hierarchy This Package Previous Next Index
Class wais.WAISDocuments
java.lang.Object
|
+----wais.WAISDocuments
- public class WAISDocuments
- extends Object
A class to hold information on the documents in the WAIS source. This
information is spread in strange ways across the document file and file name
file. This class loads the information into hash tables so we can quickly
do things in the inverted index file. If these in memory tables weren't created
each extraction of information from the inverted index file would require a linear
search through the document file. WARNING!! For a very
large database with a very large number of documents this method of
creating an in memory table of this information wouldn't work.
-
WAISDocuments(String, String)
- Construct a WAISDocument instance.
-
GetDocumentEntryNumber(String)
- given a filename (fully qualified) in the database, return the
entryNumber of that filename in the document table.
-
GetDocumentNumberTerms(String)
- given a filename return the number of terms.
-
GetNumberDocuments()
- return the number of documents in the tables.
WAISDocuments
public WAISDocuments(String indexLocation,
String dataBase) throws SourceException
- Construct a WAISDocument instance.
- Parameters:
- indexLocation - The source specific location of the
indexes.
- dataBase - The indentifier of the database.
GetDocumentEntryNumber
public int GetDocumentEntryNumber(String fileName) throws SourceException
- given a filename (fully qualified) in the database, return the
entryNumber of that filename in the document table.
- Parameters:
- fileName - The file name for which data is to be returned.
GetDocumentNumberTerms
public long GetDocumentNumberTerms(String fileName) throws SourceException
- given a filename return the number of terms.
- Parameters:
- fileName - The file name for which data is to be returned.
GetNumberDocuments
public int GetNumberDocuments()
- return the number of documents in the tables.
All Packages Class Hierarchy This Package Previous Next Index