com.sun.labs.minion.indexer.postings
Class DocOccurrence

java.lang.Object
  extended by com.sun.labs.minion.indexer.postings.OccurrenceImpl
      extended by com.sun.labs.minion.indexer.postings.DocOccurrence
All Implemented Interfaces:
Occurrence

public class DocOccurrence
extends OccurrenceImpl

An occurrence to use for document dictionaries. Such an occurrence includes the entry from the main dictionary that is to be added to a document vector.


Field Summary
protected  Entry e
          The dictionary entry for the term that is occurring.
protected  int[] fields
          The ids of the field in which the occurrence was found.
 
Fields inherited from class com.sun.labs.minion.indexer.postings.OccurrenceImpl
count, id
 
Constructor Summary
DocOccurrence()
           
 
Method Summary
 Entry getEntry()
           
 int[] getFields()
           
 void setEntry(Entry e)
          Adds an entry to this occurrence, so that we can track the entries that make up a vector for faster dumping.
 void setFields(int[] fields)
           
 
Methods inherited from class com.sun.labs.minion.indexer.postings.OccurrenceImpl
getCount, getID, setCount, setID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

e

protected Entry e
The dictionary entry for the term that is occurring.


fields

protected int[] fields
The ids of the field in which the occurrence was found.

Constructor Detail

DocOccurrence

public DocOccurrence()
Method Detail

setEntry

public void setEntry(Entry e)
Adds an entry to this occurrence, so that we can track the entries that make up a vector for faster dumping.


getEntry

public Entry getEntry()

getFields

public int[] getFields()

setFields

public void setFields(int[] fields)