|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.creole.annic.Hit
public class Hit
Hit is a unit of result that is returned when user searches the annic index. It stores the four things: document ID (String), start and end offsets (int) and the query that matched this hit.
Field Summary | |
---|---|
protected String |
annotationSetName
Annotation Set Name - the annotation set this Hit belongs to |
protected String |
documentID
Document ID - the document this Hit belongs to |
protected int |
endOffset
End Offset of the found pattern |
protected String |
queryString
Query that matches with this instance of Hit. |
protected int |
startOffset
Start OFfset of the found pattern |
Constructor Summary | |
---|---|
Hit(String docID,
String annotationSetName,
int startOffset,
int endOffset,
String queryString)
Constructor |
Method Summary | |
---|---|
String |
getAnnotationSetName()
Returns the annotation set this pattern belongs to. |
String |
getDocumentID()
Returns the document ID |
int |
getEndOffset()
Returns the end offset of the matching part (query matched part) |
String |
getQueryString()
Returns the query for which the current pattern was matched |
int |
getStartOffset()
Returns the start offset of the matching part (query matched part) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int startOffset
protected int endOffset
protected String documentID
protected String annotationSetName
protected String queryString
Constructor Detail |
---|
public Hit(String docID, String annotationSetName, int startOffset, int endOffset, String queryString)
docID
- annotationSetName
- startOffset
- endOffset
- queryString
- Method Detail |
---|
public int getStartOffset()
public int getEndOffset()
public String getDocumentID()
public String getQueryString()
public String getAnnotationSetName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |