com.sun.labs.minion.indexer.entry
Class IDFreqEntry

java.lang.Object
  extended by com.sun.labs.minion.indexer.entry.BaseEntry
      extended by com.sun.labs.minion.indexer.entry.SinglePostingsEntry
          extended by com.sun.labs.minion.indexer.entry.IDFreqEntry
All Implemented Interfaces:
Entry, IndexEntry, MergeableEntry, QueryEntry, java.lang.Comparable

public class IDFreqEntry
extends SinglePostingsEntry
implements MergeableEntry


Field Summary
 
Fields inherited from class com.sun.labs.minion.indexer.entry.SinglePostingsEntry
logTag, n, offset, p, size, tsize
 
Fields inherited from class com.sun.labs.minion.indexer.entry.BaseEntry
dict, id, name, postIn
 
Constructor Summary
IDFreqEntry()
           
IDFreqEntry(java.lang.Object name)
           
 
Method Summary
 Entry getEntry(java.lang.Object name)
          Gets a new entry with the given name.
protected  Postings getPostings()
          Gets the appropriate postings type for the class.
protected  Postings getPostings(ReadableBuffer input)
          Reads the postings for this class, returning a set of postings useful at query time.
 void merge(QueryEntry qe, int[] idMap)
          Merges postings from another entry into this one.
 
Methods inherited from class com.sun.labs.minion.indexer.entry.SinglePostingsEntry
add, append, copyData, decodePostingsInfo, encodePostingsInfo, getEntry, getMaxFDT, getN, getNumChannels, getTotalOccurrences, hasFieldInformation, hasPositionInformation, iterator, readPostings, writePostings
 
Methods inherited from class com.sun.labs.minion.indexer.entry.BaseEntry
compareTo, getID, getName, getPartition, setDictionary, setID, setName, setPostingsInput, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.labs.minion.indexer.entry.IndexEntry
add, append, encodePostingsInfo, setID, setName, writePostings
 
Methods inherited from interface com.sun.labs.minion.indexer.entry.Entry
getEntry, getID, getMaxFDT, getN, getName, getNumChannels, getPartition, getTotalOccurrences, setDictionary
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

IDFreqEntry

public IDFreqEntry()

IDFreqEntry

public IDFreqEntry(java.lang.Object name)
Method Detail

getEntry

public Entry getEntry(java.lang.Object name)
Description copied from interface: Entry
Gets a new entry with the given name.

Specified by:
getEntry in interface Entry
Parameters:
name - the name that we want to give the entry.
Returns:
a new entry.

getPostings

protected Postings getPostings()
Gets the appropriate postings type for the class. These postings should be useable for indexing.

Specified by:
getPostings in class SinglePostingsEntry
Returns:
Postings suitable for use when indexing.

getPostings

protected Postings getPostings(ReadableBuffer input)
Reads the postings for this class, returning a set of postings useful at query time.

Specified by:
getPostings in class SinglePostingsEntry
Parameters:
input - The buffer containing the postings read from the postings file.
Returns:
The postings for this entry.

merge

public void merge(QueryEntry qe,
                  int[] idMap)
Description copied from interface: MergeableEntry
Merges postings from another entry into this one.

Specified by:
merge in interface MergeableEntry
Parameters:
qe - The entry that we want to append onto this one.
idMap - A map from old IDs in the given postings to new IDs with gaps removed for deleted data. If this is null, then there are no deleted documents.