|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.internal.core.index.WordEntry
public class WordEntry
| Field Summary | |
|---|---|
protected int |
fNumRefs
|
protected int[] |
fRefs
|
protected char[] |
fWord
|
| Constructor Summary | |
|---|---|
WordEntry()
|
|
WordEntry(char[] word)
|
|
| Method Summary | |
|---|---|
int |
addRef(int fileNum)
Adds a reference and records the change in footprint. |
void |
addRefs(int[] refs)
Adds a set of references and records the change in footprint. |
int |
compareTo(WordEntry other)
|
int |
footprint()
Returns the size of the wordEntry |
int |
getNumRefs()
Returns the number of references, e.g. |
int |
getRef(int i)
returns the file number in the i position in the list of references. |
int[] |
getRefs()
Returns the references of the wordEntry (the number of the files it appears in). |
char[] |
getWord()
returns the word of the wordEntry. |
void |
mapRefs(int[] mappings)
Changes the references of the wordEntry to match the mapping. |
void |
reset(char[] word)
Clears the wordEntry. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected char[] fWord
protected int fNumRefs
protected int[] fRefs
| Constructor Detail |
|---|
public WordEntry()
public WordEntry(char[] word)
| Method Detail |
|---|
public int addRef(int fileNum)
public void addRefs(int[] refs)
public int footprint()
public int getNumRefs()
public int getRef(int i)
public int[] getRefs()
public char[] getWord()
public void mapRefs(int[] mappings)
public void reset(char[] word)
public String toString()
toString in class Objectpublic int compareTo(WordEntry other)
compareTo in interface Comparable<WordEntry>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||