|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.indexer.entry.BaseEntry
public abstract class BaseEntry
An abstract base class for all entry types. This supplies the elements
common to all entries, namely an ID and a name. The class used for
naming entries must implement Comparable so that entries
can be sorted by name when dictionaries are dumped to disk.
| Field Summary | |
|---|---|
protected Dictionary |
dict
The dictionary that this entry was drawn from. |
protected int |
id
The ID of this entry. |
protected java.lang.Object |
name
The name of this entry. |
protected PostingsInput[] |
postIn
The input channels that are associated with the postings for this entry. |
| Constructor Summary | |
|---|---|
BaseEntry()
Creates a base entry with no name. |
|
BaseEntry(java.lang.Object name)
Creates an entry with a given name. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compares two entries by the order of their names. |
int |
getID()
Gets the ID associated with this entry. |
java.lang.Object |
getName()
Gets the name of this entry |
Partition |
getPartition()
Gets the partition from which this entry was drawn. |
void |
setDictionary(Dictionary dict)
Sets the dictionary that this entry was drawn from. |
void |
setID(int id)
Sets the ID associated with this entry. |
void |
setName(java.lang.Object name)
Sets the name of this entry. |
void |
setPostingsInput(PostingsInput[] postIn)
Sets the channels that will be used to read postings for this entry. |
java.lang.String |
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, writePostings |
| Methods inherited from interface com.sun.labs.minion.indexer.entry.QueryEntry |
|---|
decodePostingsInfo, hasFieldInformation, hasPositionInformation, iterator, readPostings |
| Methods inherited from interface com.sun.labs.minion.indexer.entry.Entry |
|---|
getEntry, getEntry, getMaxFDT, getN, getNumChannels, getTotalOccurrences |
| Field Detail |
|---|
protected int id
protected java.lang.Object name
Comparable so that entries can be sorted by
name when dictionaries are dumped to disk.
protected PostingsInput[] postIn
protected Dictionary dict
| Constructor Detail |
|---|
public BaseEntry()
public BaseEntry(java.lang.Object name)
name - the name of the entry| Method Detail |
|---|
public java.lang.Object getName()
getName in interface Entrypublic void setName(java.lang.Object name)
setName in interface EntrysetName in interface IndexEntryname - The name that we wish the entry to have.public int getID()
getID in interface Entrypublic void setID(int id)
setID in interface EntrysetID in interface IndexEntryid - The id to use for this entry.public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic void setPostingsInput(PostingsInput[] postIn)
setPostingsInput in interface QueryEntrypostIn - The inputs from which the postings data can be read.public void setDictionary(Dictionary dict)
setDictionary in interface Entrypublic Partition getPartition()
getPartition in interface Entrypublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||