All Packages Class Hierarchy This Package Previous Next Index
Class ORG.oclc.z39.TermInfo
java.lang.Object
|
+----ORG.oclc.z39.TermInfo
- public class TermInfo
- extends Object
TermInfo is returned by a Z39-50 Scan request.
- Version:
- @(#)TermInfo.java 1.1 07/09/97
-
a
-
-
alternativeTerm
-
-
b
-
-
displayTerm
-
-
globalOccurrences
-
-
Term
-
-
termType
-
-
TermInfo()
-
-
TermInfo(DataDir)
-
-
TermInfo(String, String)
-
-
addByAttribute(Attribute[], String, int)
- Add these attributes to this term.
-
addByAttribute(TermInfo, String, Attribute[])
- Merge the byAttribute of otherTerm with the byAttribute of this term.
-
alternativeTerm()
-
-
buildDir(String, String, Attribute[], int, byAttributes[])
- Build a DataDir TermInfo from the parameters
-
buildDir(TermInfo)
-
Build a DataDir TermInfo from the TermInfo object
-
compareTo(String)
-
-
compareTo(TermInfo)
-
-
displayTerm()
-
-
getFirstDBOffset()
-
-
getFirstUse()
-
-
getNumGTZero()
-
-
getRawText()
-
-
getText()
-
-
mergeDbOccurrences(String)
- Combine the by database information into a single count with the specified
database name
-
setByAttribute(String, Attribute[])
- If byAttribute does not exist, create one.
-
Term()
-
-
termCount()
-
-
termType()
-
-
toString()
-
-
trim(int)
- Clean up Term to be a displayTerm.
Term
public String Term
displayTerm
public String displayTerm
alternativeTerm
public String alternativeTerm
termType
public int termType
a
public Attribute a[]
globalOccurrences
public int globalOccurrences
b
public byAttributes b[]
TermInfo
public TermInfo()
TermInfo
public TermInfo(String term,
String displayTerm)
TermInfo
public TermInfo(DataDir termInfo) throws Diagnostic1
getNumGTZero
public int getNumGTZero()
- Returns:
- the number of attributes with non-zero counts for this term
getFirstDBOffset
public int getFirstDBOffset()
getText
public final String getText()
- Returns:
- displayTerm if it exists, else Term
getRawText
public final String getRawText()
- Returns:
- Term
termCount
public final int termCount()
- Returns:
- globalOccurrences
displayTerm
public final String displayTerm()
- Returns:
- displayTerm
alternativeTerm
public final String alternativeTerm()
- Returns:
- alternativeTerm
termType
public final int termType()
Term
public final String Term()
- Returns:
- Term
trim
public void trim(int n)
- Clean up Term to be a displayTerm.
getFirstUse
public int getFirstUse()
- Returns:
- the first use attribute for this term
mergeDbOccurrences
public void mergeDbOccurrences(String newName)
- Combine the by database information into a single count with the specified
database name
- Parameters:
- newName - the new database name
compareTo
public int compareTo(String anotherTerm)
- Parameters:
- anotherTerm - compare this term to anotherTerm
- Returns:
- true if the terms are equal
compareTo
public int compareTo(TermInfo anotherTerm)
- Parameters:
- anotherTerm - compare this term to anotherTerm
- Returns:
- true if the terms are equal
setByAttribute
public void setByAttribute(String dbName,
Attribute defaultAttrs[])
- If byAttribute does not exist, create one. If attributes exist, create
the byAttribute from the dbName and attributes. If attributes does not
exist, create byAttribute from the default attributes and the dbName.
- Parameters:
- dbName - database name for byAttribute
- defaultAttrs - list of default attributes
addByAttribute
public void addByAttribute(TermInfo otherTerm,
String dbName,
Attribute defaultAttrs[])
- Merge the byAttribute of otherTerm with the byAttribute of this term.
- Parameters:
- otherTerm - term containing attributes to merge with this term
- dbName - database name for these attributes
- defaultAttrs - default attributes for this term
addByAttribute
public void addByAttribute(Attribute a[],
String dbName,
int postings)
- Add these attributes to this term.
- Parameters:
- a - attributes to add
- dbName - database name for attributes
- postings - record count for attributes
buildDir
public static DataDir buildDir(String term,
String displayTerm,
Attribute a[],
int globalOccurrences,
byAttributes b[])
- Build a DataDir TermInfo from the parameters
buildDir
public static DataDir buildDir(TermInfo t)
- Build a DataDir TermInfo from the TermInfo object
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index