ir.vsr
Class TokenOccurrence

java.lang.Object
  |
  +--ir.vsr.TokenOccurrence
Direct Known Subclasses:
TokenPosOccurrence

public class TokenOccurrence
extends java.lang.Object

A lightweight object for storing information about an occurrence of a token (a.k.a word, term) in a Document.


Field Summary
 int count
          The number of times it occurs in the Document
 DocumentReference docRef
          A reference to the Document where it occurs
 
Constructor Summary
TokenOccurrence(DocumentReference docRef, int count)
          Create an occurrence with these values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

docRef

public DocumentReference docRef
A reference to the Document where it occurs

count

public int count
The number of times it occurs in the Document
Constructor Detail

TokenOccurrence

public TokenOccurrence(DocumentReference docRef,
                       int count)
Create an occurrence with these values