com.sun.labs.minion.indexer.dictionary
Class DiskDictionary.HE

java.lang.Object
  extended by com.sun.labs.minion.indexer.dictionary.DiskDictionary.HE
All Implemented Interfaces:
java.lang.Comparable<DiskDictionary.HE>
Enclosing class:
DiskDictionary

protected class DiskDictionary.HE
extends java.lang.Object
implements java.lang.Comparable<DiskDictionary.HE>

A class that will act as a heap entry for merging.


Field Summary
protected  QueryEntry curr
          The current entry.
protected  java.util.Iterator i
          The iterator.
protected  int index
          The index of the dictionary.
protected  EntryMapper mapper
          A mapper for our entries.
protected  int origID
          The original ID of the current entry.
 
Constructor Summary
DiskDictionary.HE(DiskDictionary dd, int index, EntryMapper mapper)
           
 
Method Summary
 int compareTo(DiskDictionary.HE e)
           
protected  boolean next()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

i

protected java.util.Iterator i
The iterator.


curr

protected QueryEntry curr
The current entry.


origID

protected int origID
The original ID of the current entry.


mapper

protected EntryMapper mapper
A mapper for our entries.


index

protected int index
The index of the dictionary.

Constructor Detail

DiskDictionary.HE

public DiskDictionary.HE(DiskDictionary dd,
                         int index,
                         EntryMapper mapper)
Method Detail

next

protected boolean next()

compareTo

public int compareTo(DiskDictionary.HE e)
Specified by:
compareTo in interface java.lang.Comparable<DiskDictionary.HE>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object