|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ir.vsr.TokenOccurrence | +--ir.vsr.TokenPosOccurrence
A lightweight object for storing information about an occurrence of a token (a.k.a word, term) in a Document, including an array of the positions at which it occurs.
Field Summary | |
int[] |
positions
The positions where it occurs in the Document |
Fields inherited from class ir.vsr.TokenOccurrence |
count, docRef |
Constructor Summary | |
TokenPosOccurrence(DocumentReference docRef,
java.util.ArrayList positions)
Create an occurrence with these values |
Method Summary | |
static int[] |
arrayListToIntArray(java.util.ArrayList list)
Convert an ArrayList of Integers into an array of ints |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int[] positions
Constructor Detail |
public TokenPosOccurrence(DocumentReference docRef, java.util.ArrayList positions)
Method Detail |
public static int[] arrayListToIntArray(java.util.ArrayList list)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |