|
|||||||||
| Home >> All >> org >> greenstone >> [ mg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.greenstone.mg
Class MGQueryResult

java.lang.Objectorg.greenstone.mg.MGQueryResult
- public class MGQueryResult
- extends java.lang.Object
a java version of QueryResult for mg contains get methods for the java side, and simple set methods to be called from c side
| Field Summary | |
protected java.util.Vector |
docs_
the list of MGDocInfo |
protected java.util.Vector |
terms_
the list of MGTermInfo |
protected long |
total_num_docs_
the total number of docs found - not likely to be the size of docs_ |
| Constructor Summary | |
(package private) |
MGQueryResult()
|
| Method Summary | |
void |
addDoc(long doc,
float rank)
|
void |
addTerm(java.lang.String term,
java.lang.String tag,
int stem,
long match,
long freq,
java.lang.String[] equivs)
|
void |
clear()
clear the info from the last query should be called before setting any new docs/terms |
java.util.Vector |
getDocs()
|
java.util.Vector |
getTerms()
|
long |
getTotalDocs()
|
void |
setTotalDocs(long num)
|
java.lang.String |
toShortString()
a shorter representation - just terms and total docs - not the individual docnums and ranks |
java.lang.String |
toString()
returns the result as a String - useful for printing out results |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
docs_
protected java.util.Vector docs_
- the list of MGDocInfo
terms_
protected java.util.Vector terms_
- the list of MGTermInfo
total_num_docs_
protected long total_num_docs_
- the total number of docs found - not likely to be the size of docs_
| Constructor Detail |
MGQueryResult
MGQueryResult()
| Method Detail |
clear
public void clear()
- clear the info from the last query
should be called before setting any new docs/terms
toString
public java.lang.String toString()
- returns the result as a String - useful for printing out results
toShortString
public java.lang.String toShortString()
- a shorter representation - just terms and total docs - not the
individual docnums and ranks
setTotalDocs
public void setTotalDocs(long num)
addDoc
public void addDoc(long doc,
float rank)
addTerm
public void addTerm(java.lang.String term, java.lang.String tag, int stem, long match, long freq, java.lang.String[] equivs)
getDocs
public java.util.Vector getDocs()
getTerms
public java.util.Vector getTerms()
getTotalDocs
public long getTotalDocs()
|
|||||||||
| Home >> All >> org >> greenstone >> [ mg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.greenstone.mg.MGQueryResult