|
||||||||||
| 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
com.sun.labs.minion.indexer.entry.SinglePostingsEntry
com.sun.labs.minion.indexer.entry.DFOEntry
public class DFOEntry
| Field Summary | |
|---|---|
protected int |
fnpSize
The size of the data including fields and positions data. |
protected int |
maxfdt
The maximum frequency of the term across the documents in the postings list. |
protected long |
to
The total number of occurrences in the postings list associated with this entry. |
| 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 | |
|---|---|
DFOEntry()
|
|
DFOEntry(java.lang.Object name)
|
|
| Method Summary | |
|---|---|
void |
decodePostingsInfo(ReadableBuffer b,
int pos)
Decodes the postings information associated with this entry. |
void |
encodePostingsInfo(WriteableBuffer b)
Encodes any information associated with the postings onto the given buffer. |
Entry |
getEntry()
Gets a new entry that contains a copy of the data in this entry. |
Entry |
getEntry(java.lang.Object name)
Gets a new entry with the given name. |
IndexEntry |
getInstance(java.lang.Object name)
Gets a new instance of the implementing class. |
int |
getMaxFDT()
Gets the maximum frequency in the postings associated with this entry. |
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. |
long |
getTotalOccurrences()
Gets the total number of occurrences associated with this entry. |
boolean |
hasFieldInformation()
Indicates whether the postings associated with this entry have field information. |
boolean |
hasPositionInformation()
Indicates whether the postings associated with this entry have position information. |
PostingsIterator |
iterator(PostingsIteratorFeatures features)
Gets an iterator that will iterate through a set of postings associated with this entry. |
void |
readPostings()
Reads the postings data for this entry. |
boolean |
writePostings(PostingsOutput[] out,
int[] idMap)
Writes the postings associated with this entry to some or all of the given channels. |
| Methods inherited from class com.sun.labs.minion.indexer.entry.SinglePostingsEntry |
|---|
add, append, copyData, getN, getNumChannels |
| 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 |
| Field Detail |
|---|
protected long to
protected int maxfdt
protected int fnpSize
| Constructor Detail |
|---|
public DFOEntry()
public DFOEntry(java.lang.Object name)
| Method Detail |
|---|
public Entry getEntry(java.lang.Object name)
Entry
name - the name that we want to give the entry.
public Entry getEntry()
getEntry in interface EntrygetEntry in class SinglePostingsEntryjava.lang.ClassCastException - if the provided entry is not of type
DFOEntrypublic IndexEntry getInstance(java.lang.Object name)
name - The name to give the new instance.protected Postings getPostings()
getPostings in class SinglePostingsEntryprotected Postings getPostings(ReadableBuffer input)
getPostings in class SinglePostingsEntryinput - The buffer containing the postings read from the
postings file.
public boolean writePostings(PostingsOutput[] out,
int[] idMap)
throws java.io.IOException
writePostings in interface IndexEntrywritePostings in class SinglePostingsEntryout - The outputs to which we will write the postings.idMap - A map from the IDs currently used in the postings to
the IDs that should be used when the postings are written to disk.
This may be null, in which case no remapping will
occur.
java.io.IOException - if there is any error writing the
postings.public void encodePostingsInfo(WriteableBuffer b)
encodePostingsInfo in interface IndexEntryencodePostingsInfo in class SinglePostingsEntryb - The buffer onto which the postings information should be
encoded. The buffer will be positioned to the correct spot for the
encoding.
public void decodePostingsInfo(ReadableBuffer b,
int pos)
decodePostingsInfo in interface QueryEntrydecodePostingsInfo in class SinglePostingsEntryb - The buffer containing the encoded postings information.pos - The position in b where the postings
information can be found.
public void readPostings()
throws java.io.IOException
readPostings in interface QueryEntryreadPostings in class SinglePostingsEntryjava.io.IOException - if there is any error reading the
postings.public long getTotalOccurrences()
getTotalOccurrences in interface EntrygetTotalOccurrences in class SinglePostingsEntrypublic int getMaxFDT()
getMaxFDT in interface EntrygetMaxFDT in class SinglePostingsEntrypublic boolean hasPositionInformation()
QueryEntry
hasPositionInformation in interface QueryEntryhasPositionInformation in class SinglePostingsEntrypublic boolean hasFieldInformation()
QueryEntry
hasFieldInformation in interface QueryEntryhasFieldInformation in class SinglePostingsEntrypublic PostingsIterator iterator(PostingsIteratorFeatures features)
iterator in interface QueryEntryiterator in class SinglePostingsEntryfeatures - The features that the iterator must support
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||