|
||||||||||
| 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
public abstract class CasedEntry
A class for holding cased dictionary entries.
| Field Summary | |
|---|---|
protected IndexEntry |
ciEntry
A reference to the case insensitive postings that are associated with this entry. |
protected static java.lang.String |
logTag
A tag. |
protected int[] |
n
The number of each type of postings. |
protected long[] |
offset
The offset of the case sensitive postings. |
protected Postings[] |
p
Postings for the case sensitive and case insensitive versions of saved field values. |
protected int[] |
size
The size of each kind of postings. |
protected int |
totalSize
The total size of the postings. |
| Fields inherited from class com.sun.labs.minion.indexer.entry.BaseEntry |
|---|
dict, id, name, postIn |
| Constructor Summary | |
|---|---|
CasedEntry()
Creates a cased postings entry. |
|
CasedEntry(java.lang.Object name)
Creates a cased postings entry. |
|
| Method Summary | |
|---|---|
void |
add(Occurrence o)
Adds an occurrence to this index entry. |
protected void |
add(Occurrence o,
int pos)
Adds an occurrence to the postings at a given position. |
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 |
getCaseInsensitiveEntry()
Gets the case insensitive entry for this entry. |
Entry |
getEntry()
Gets a new entry that contains a copy of the data in the given entry. |
int |
getNumChannels()
Returns the number of channels needed to store the postings for this entry type. |
protected abstract void |
init()
Initializes the arrays containing postings, sizes, etc. |
protected abstract void |
initPostings(int pos)
Initializes postings at a given position in the postings array. |
void |
setCaseInsensitiveEntry(IndexEntry e)
Sets the case insensitive entry for this entry. |
| 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 |
| Methods inherited from interface com.sun.labs.minion.indexer.entry.CasedPostingsEntry |
|---|
addCaseInsensitive, addCaseSensitive, getCaseInsensitivePostings, getCaseSensitivePostings, nameOccurred |
| Methods inherited from interface com.sun.labs.minion.indexer.entry.IndexEntry |
|---|
append, writePostings |
| Methods inherited from interface com.sun.labs.minion.indexer.entry.QueryEntry |
|---|
hasFieldInformation, hasPositionInformation, iterator, readPostings |
| Methods inherited from interface com.sun.labs.minion.indexer.entry.Entry |
|---|
getEntry, getMaxFDT, getN, getTotalOccurrences |
| Field Detail |
|---|
protected IndexEntry ciEntry
protected Postings[] p
protected int[] n
protected int[] size
protected int totalSize
protected long[] offset
protected static java.lang.String logTag
| Constructor Detail |
|---|
public CasedEntry()
public CasedEntry(java.lang.Object name)
| Method Detail |
|---|
protected abstract void init()
protected abstract void initPostings(int pos)
public Entry getEntry()
getEntry in interface Entrypublic void add(Occurrence o)
add in interface IndexEntryo - The occurrence to add.
protected void add(Occurrence o,
int pos)
public int getNumChannels()
getNumChannels in interface Entrypublic void encodePostingsInfo(WriteableBuffer b)
encodePostingsInfo in interface IndexEntryb - 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 QueryEntryb - The buffer containing the encoded postings information.pos - The position in b where the postings
information can be found.public void setCaseInsensitiveEntry(IndexEntry e)
setCaseInsensitiveEntry in interface CasedPostingsEntrye - the case insensitive entry associated with this entrypublic Entry getCaseInsensitiveEntry()
getCaseInsensitiveEntry in interface CasedPostingsEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||