Class wais.WAISDictionaryTerm
All Packages Class Hierarchy This Package Previous Next Index
Class wais.WAISDictionaryTerm
java.lang.Object
|
+----wais.WAISDictionaryTerm
- public class WAISDictionaryTerm
- extends Object
Class to represent the information held in an entry in the WAIS dictionary file. The
three relevant pieces of information are:
- the string that is the term
- the location in the inverted index file of this term
- the number of documents in the source that contain this term.
-
WAISDictionaryTerm(String, long, int)
- Construct a new WAISDictionaryTerm
-
GetInvertedFileLocation()
- Return the inverted index file offset of this term.
-
GetNumberDocuments()
- Return the number of documents in the source that this term
appears in.
-
GetTerm()
- Return the term associated with this instance.
WAISDictionaryTerm
public WAISDictionaryTerm(String term,
long loc,
int number)
- Construct a new WAISDictionaryTerm
- Parameters:
- term - The string that is the term.
- loc - The location in the inverted index file of this term
- number - The number of documents in the source that
contain this term.
GetTerm
public String GetTerm()
- Return the term associated with this instance.
GetInvertedFileLocation
public long GetInvertedFileLocation()
- Return the inverted index file offset of this term.
GetNumberDocuments
public int GetNumberDocuments()
- Return the number of documents in the source that this term
appears in.
All Packages Class Hierarchy This Package Previous Next Index