|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable
net.jot.search.simpleindexer.JOTSearchResult
public class JOTSearchResult
Represented an entry of the sorted search result (ie: a file) This is of type hashtable, so that a user writing it's own JOTSearchsorter implementation could add it's own extra element data
| Field Summary | |
|---|---|
static java.lang.String |
BEST_LINE
|
static java.lang.String |
BEST_LINE_SCORE
|
static java.lang.String |
HITS
|
static java.lang.String |
ID
|
static java.lang.String |
SCORE
|
| Constructor Summary | |
|---|---|
JOTSearchResult(java.lang.String id,
int score,
int hits,
int bestLine,
int bestLineScore)
creates an entry with specific id,score,hits |
|
| Method Summary | |
|---|---|
int |
getBestLine()
line number of best line |
int |
getBestLineScore()
how many of the keywords on the best line |
java.lang.Integer |
getHits()
total number of keywords hits in whole file |
java.lang.String |
getID()
return uniqueId of the matching entry(ex: filename) |
int |
getScore()
score 0 to 10 (how many of the keywords where found in the file) |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ID
public static final java.lang.String SCORE
public static final java.lang.String HITS
public static final java.lang.String BEST_LINE
public static final java.lang.String BEST_LINE_SCORE
| Constructor Detail |
|---|
public JOTSearchResult(java.lang.String id,
int score,
int hits,
int bestLine,
int bestLineScore)
id - score - hits - | Method Detail |
|---|
public int getScore()
public int getBestLineScore()
public int getBestLine()
public java.lang.Integer getHits()
public java.lang.String getID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||