|
||||||||||
| 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.CasedEntry
com.sun.labs.minion.indexer.entry.CasedDFOEntry
com.sun.labs.minion.indexer.entry.MPCasedDFOEntry
public class MPCasedDFOEntry
| Field Summary |
|---|
| Fields inherited from class com.sun.labs.minion.indexer.entry.CasedDFOEntry |
|---|
CI, CS, fnpSize, logTag, maxfdt, to |
| Fields inherited from class com.sun.labs.minion.indexer.entry.CasedEntry |
|---|
ciEntry, n, offset, p, size, totalSize |
| Fields inherited from class com.sun.labs.minion.indexer.entry.BaseEntry |
|---|
dict, id, name, postIn |
| Constructor Summary | |
|---|---|
MPCasedDFOEntry()
|
|
MPCasedDFOEntry(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()
Duplicates the contents of this entry, except for any postings. |
Entry |
getEntry(java.lang.Object name)
Gets a new entry with the given name. |
int |
getNumChannels()
Returns the number of channels needed to store the postings for this entry type. |
protected void |
init()
Initializes the arrays containing postings, sizes, etc. |
void |
readPostings()
Reads the postings data for this entry. |
void |
readPostings(int pos)
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.CasedDFOEntry |
|---|
addCaseInsensitive, addCaseSensitive, append, getCaseInsensitivePostings, getCaseSensitivePostings, getInstance, getMaxFDT, getN, getTotalOccurrences, hasFieldInformation, hasPositionInformation, initPostings, iterator, nameOccurred |
| Methods inherited from class com.sun.labs.minion.indexer.entry.CasedEntry |
|---|
add, add, getCaseInsensitiveEntry, setCaseInsensitiveEntry |
| 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 |
|---|
public MPCasedDFOEntry()
public MPCasedDFOEntry(java.lang.Object name)
| Method Detail |
|---|
public Entry getEntry(java.lang.Object name)
Entry
getEntry in interface EntrygetEntry in class CasedDFOEntryname - the name that we want to give the entry.
public Entry getEntry()
getEntry in interface EntrygetEntry in class CasedDFOEntryprotected void init()
CasedEntry
init in class CasedDFOEntrypublic int getNumChannels()
getNumChannels in interface EntrygetNumChannels in class CasedEntrypublic void encodePostingsInfo(WriteableBuffer b)
encodePostingsInfo in interface IndexEntryencodePostingsInfo in class CasedDFOEntryb - The buffer onto which the postings information should be
encoded. The buffer will be positioned to the correct spot for the
encoding.
public boolean writePostings(PostingsOutput[] out,
int[] idMap)
throws java.io.IOException
writePostings in interface IndexEntrywritePostings in class CasedDFOEntryout - 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 decodePostingsInfo(ReadableBuffer b,
int pos)
decodePostingsInfo in interface QueryEntrydecodePostingsInfo in class CasedDFOEntryb - The buffer containing the encoded postings information.pos - The position in b where the postings
information can be found.
public void readPostings(int pos)
throws java.io.IOException
readPostings in class CasedDFOEntryjava.io.IOException - if there is any error reading the
postings.
public void readPostings()
throws java.io.IOException
readPostings in interface QueryEntryreadPostings in class CasedDFOEntryjava.io.IOException - if there is any error reading the
postings.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||