|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.z39.byAttributes
Object to maintain the per-database results for a Z39.50 scan.
Constructor Summary | |
byAttributes(Attribute[] a,
String d,
int n)
Build a list of attributes for a term with database and posting information. |
|
byAttributes(DataDir byAttribute)
Build a list of attributes for a term with database and posting information from a TermInfo DataDir. |
Method Summary | |
void |
addOccurrences(String dbName,
int postings)
Adds a new database name and postings count to this attribute combination. |
boolean |
attributesMatch(Attribute[] a)
Compare the input Attribute object to this object. |
static DataDir |
buildDir(Attribute[] attributes,
Vector databaseNames,
Vector num)
Build a DataDir from an Attribute object array. |
static DataDir |
buildDir(byAttributes b)
Build a DataDir from a byAttributes Object. |
String[] |
databaseNames()
Get an array representation of all the database names in the scan. |
void |
mergeDbOccurrences(String newName)
Merges multiple database names and counts into a single database name and count. |
Integer[] |
nums()
Get an array representation of all the postings counts in the scan. |
void |
setDatabaseName(String name,
int whichName)
Set the databaseName in an attribute. |
String |
toString()
Generate a String representation of this object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public byAttributes(Attribute[] a, String d, int n)
public byAttributes(DataDir byAttribute) throws Diagnostic1
Method Detail |
public String[] databaseNames()
public Integer[] nums()
public void setDatabaseName(String name, int whichName)
name
- is the string to set the entry towhichName
- denotes the position in the databaseNames vectorpublic void mergeDbOccurrences(String newName)
newName
- name of the new merged databasepublic boolean attributesMatch(Attribute[] a)
a
- the input Attributepublic void addOccurrences(String dbName, int postings)
public static DataDir buildDir(Attribute[] attributes, Vector databaseNames, Vector num)
attributes
- attribute combinationdatabaseNames
- list of databases with resultsnum
- list of counts to go with database namespublic static DataDir buildDir(byAttributes b)
public String toString()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |