|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.internal.core.index.Block
org.teiid.internal.core.index.IndexBlock
org.teiid.internal.core.index.SimpleIndexBlock
public class SimpleIndexBlock
Does no compression of words, and uses 4-byte ints for file numbers and number of files.
| Field Summary | |
|---|---|
protected int |
offset
|
| Fields inherited from class org.teiid.internal.core.index.Block |
|---|
blockSize, field |
| Constructor Summary | |
|---|---|
SimpleIndexBlock(int blockSize)
|
|
| Method Summary | |
|---|---|
boolean |
addEntry(WordEntry entry)
Adds the given wordEntry to the indexBlock. |
WordEntry |
findEntry(char[] word)
|
void |
flush()
Flushes the block |
boolean |
isEmpty()
Returns whether the block is empty or not (if it doesn't contain any wordEntry). |
boolean |
nextEntry(WordEntry entry)
Finds the next wordEntry and stores it in the given entry. |
void |
reset()
|
| Methods inherited from class org.teiid.internal.core.index.IndexBlock |
|---|
clear, findEntryPrefixedBy, findExactEntry |
| Methods inherited from class org.teiid.internal.core.index.Block |
|---|
read, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int offset
| Constructor Detail |
|---|
public SimpleIndexBlock(int blockSize)
| Method Detail |
|---|
public boolean addEntry(WordEntry entry)
IndexBlock
addEntry in class IndexBlockIndexBlock.addEntry(org.teiid.internal.core.index.WordEntry)public WordEntry findEntry(char[] word)
public void flush()
Block
flush in class BlockBlock.flush()public boolean isEmpty()
IndexBlock
isEmpty in class IndexBlockIndexBlock.isEmpty()public boolean nextEntry(WordEntry entry)
IndexBlock
nextEntry in class IndexBlockIndexBlock.nextEntry(org.teiid.internal.core.index.WordEntry)public void reset()
reset in class IndexBlockIndexBlock.reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||