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

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.IDWEntry
All Implemented Interfaces:
Entry, IndexEntry, QueryEntry, java.lang.Comparable

public class IDWEntry
extends SinglePostingsEntry


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
IDWEntry()
           
IDWEntry(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.
 
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
 

Constructor Detail

IDWEntry

public IDWEntry()

IDWEntry

public IDWEntry(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.

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.