com.sun.labs.minion.classification
Class ClusterEntry

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.DocKeyEntry
              extended by com.sun.labs.minion.classification.ClusterEntry
All Implemented Interfaces:
Entry, IndexEntry, MergeableEntry, QueryEntry, java.lang.Comparable

public class ClusterEntry
extends DocKeyEntry

An entry for the doc dictionary in the cluster partition.


Field Summary
 
Fields inherited from class com.sun.labs.minion.indexer.entry.DocKeyEntry
docLen, logTag, origID, prevEntry
 
Fields inherited from class com.sun.labs.minion.indexer.entry.SinglePostingsEntry
n, offset, p, size, tsize
 
Fields inherited from class com.sun.labs.minion.indexer.entry.BaseEntry
dict, id, name, postIn
 
Constructor Summary
ClusterEntry()
           
ClusterEntry(java.lang.Object name)
           
 
Method Summary
 Entry getEntry(java.lang.Object name)
          Gets a new entry with the given name.
 Postings getPostings()
          Gets the appropriate postings type for the class.
protected  Postings getPostings(ReadableBuffer input)
          Gets a set of postings useful at query time.
 
Methods inherited from class com.sun.labs.minion.indexer.entry.DocKeyEntry
append, decodePostingsInfo, encodePostingsInfo, getDocumentLength, getDocumentVectorLength, getDocumentVectorLength, getDocumentVectorLength, getEntry, getOrigID, getTotalOccurrences, getWeightedFeatures, merge, writePostings
 
Methods inherited from class com.sun.labs.minion.indexer.entry.SinglePostingsEntry
add, copyData, getMaxFDT, getN, getNumChannels, hasFieldInformation, hasPositionInformation, iterator, readPostings
 
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, setID, setName
 
Methods inherited from interface com.sun.labs.minion.indexer.entry.Entry
getID, getMaxFDT, getN, getName, getNumChannels, getPartition, setDictionary
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

ClusterEntry

public ClusterEntry()

ClusterEntry

public ClusterEntry(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
Overrides:
getEntry in class DocKeyEntry
Parameters:
name - the name that we want to give the entry.
Returns:
a new entry.

getPostings

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

Overrides:
getPostings in class DocKeyEntry
Returns:
A set of ID and frequency postings.

getPostings

protected Postings getPostings(ReadableBuffer input)
Gets a set of postings useful at query time.

Overrides:
getPostings in class DocKeyEntry
Parameters:
input - The buffer containing the postings read from the postings file.
Returns:
A set of ID and frequency postings.