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

Constructor Index

 o byAttributes(Attribute[], String, int)
Build a list of attributes for a term with database and posting information
 o byAttributes(DataDir)
Build a list of attributes for a term with database and posting information from a TermInfo DataDir

Method Index

 o addOccurrences(String, int)
Adds a new database name and postings count to this attribute combination
 o attributesMatch(Attribute[])
 o buildDir(Attribute[], Vector, Vector)
 o buildDir(byAttributes)
 o databaseNames()
 o mergeDbOccurrences(String)
Merges multiple database names and counts into a single database name and count
 o nums()
 o setDatabaseName(String, int)
Set the databaseName in an attribute
 o toString()

Constructors

 o byAttributes
 public byAttributes(Attribute a[],
                     String d,
                     int n)
Build a list of attributes for a term with database and posting information

 o 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

Methods

 o databaseNames
 public String[] databaseNames()
Returns:
list of database names for this attribute combination
 o nums
 public Integer[] nums()
Returns:
list of counts for this attribute combination
 o 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
 o 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
 o attributesMatch
 public boolean attributesMatch(Attribute a[])
Returns:
true if the attributes specified by 'a' match this list of attributes
 o addOccurrences
 public void addOccurrences(String dbName,
                            int postings)
Adds a new database name and postings count to this attribute combination

 o 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
 o buildDir
 public static DataDir buildDir(byAttributes b)
Returns:
a byAttributes DataDir built from the byAttributes object
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index