|
||||||||||
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.classification.FeatureEntry
public class FeatureEntry
Field Summary |
---|
Fields inherited from class com.sun.labs.minion.indexer.entry.SinglePostingsEntry |
---|
log, logTag, n, offset, p, size, tsize |
Fields inherited from class com.sun.labs.minion.indexer.entry.BaseEntry |
---|
dict, id, name, postIn |
Constructor Summary | |
---|---|
FeatureEntry()
|
|
FeatureEntry(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 |
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. |
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, getTotalOccurrences, hasFieldInformation, hasPositionInformation, iterator |
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 FeatureEntry()
public FeatureEntry(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 Entry
getEntry
in class SinglePostingsEntry
protected Postings getPostings()
getPostings
in class SinglePostingsEntry
protected Postings getPostings(ReadableBuffer input)
getPostings
in class SinglePostingsEntry
input
- The buffer containing the postings read from the
postings file.
public int getMaxFDT()
getMaxFDT
in interface Entry
getMaxFDT
in class SinglePostingsEntry
public boolean writePostings(PostingsOutput[] out, int[] idMap) throws java.io.IOException
writePostings
in interface IndexEntry
writePostings
in class SinglePostingsEntry
out
- 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 IndexEntry
encodePostingsInfo
in class SinglePostingsEntry
b
- 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 QueryEntry
decodePostingsInfo
in class SinglePostingsEntry
b
- 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 QueryEntry
readPostings
in class SinglePostingsEntry
java.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 |