All Packages Class Hierarchy This Package Previous Next Index
Class ORG.oclc.z39.byAttributes
java.lang.Object
|
+----ORG.oclc.z39.byAttributes
- public class byAttributes
- extends Object
- Version:
- @(#)byAttributes.java 1.1 07/09/97
-
byAttributes(Attribute[], String, int)
- Build a list of attributes for a term with database and posting information
-
byAttributes(DataDir)
- Build a list of attributes for a term with database and posting information
from a TermInfo DataDir
-
addOccurrences(String, int)
- Adds a new database name and postings count to this attribute combination
-
attributesMatch(Attribute[])
-
-
buildDir(Attribute[], Vector, Vector)
-
-
buildDir(byAttributes)
-
-
databaseNames()
-
-
mergeDbOccurrences(String)
- Merges multiple database names and counts into a single database name
and count
-
nums()
-
-
setDatabaseName(String, int)
- Set the databaseName in an attribute
-
toString()
-
byAttributes
public byAttributes(Attribute a[],
String d,
int n)
- Build a list of attributes for a term with database and posting information
byAttributes
public byAttributes(DataDir byAttribute) throws Diagnostic1
- Build a list of attributes for a term with database and posting information
from a TermInfo DataDir
- Throws: Diagnostic1
- when the input record is not formatted according to
the standard
databaseNames
public String[] databaseNames()
- Returns:
- list of database names for this attribute combination
nums
public Integer[] nums()
- Returns:
- list of counts for this attribute combination
setDatabaseName
public void setDatabaseName(String name,
int whichName)
- Set the databaseName in an attribute
- Parameters:
- name - is the string to set the entry to
- whichName - denotes the position in the databaseNames vector
mergeDbOccurrences
public void mergeDbOccurrences(String newName)
- Merges multiple database names and counts into a single database name
and count
- Parameters:
- newName - name of the new merged database
attributesMatch
public boolean attributesMatch(Attribute a[])
- Returns:
- true if the attributes specified by 'a' match this list of
attributes
addOccurrences
public void addOccurrences(String dbName,
int postings)
- Adds a new database name and postings count to this attribute combination
buildDir
public static DataDir buildDir(Attribute attributes[],
Vector databaseNames,
Vector num)
- Parameters:
- attributes - attribute combination
- databaseNames - list of databases with results
- num - list of counts to go with database names
- Returns:
- a byAttributes DataDir built from the parameters
buildDir
public static DataDir buildDir(byAttributes b)
- Returns:
- a byAttributes DataDir built from the byAttributes object
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index