ir.vsr
Class TokenPosOccurrence

java.lang.Object
  |
  +--ir.vsr.TokenOccurrence
        |
        +--ir.vsr.TokenPosOccurrence

public class TokenPosOccurrence
extends TokenOccurrence

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

positions

public int[] positions
The positions where it occurs in the Document
Constructor Detail

TokenPosOccurrence

public TokenPosOccurrence(DocumentReference docRef,
                          java.util.ArrayList positions)
Create an occurrence with these values
Method Detail

arrayListToIntArray

public static int[] arrayListToIntArray(java.util.ArrayList list)
Convert an ArrayList of Integers into an array of ints