org.teiid.internal.core.index
Class IndexBlock
java.lang.Object
org.teiid.internal.core.index.Block
org.teiid.internal.core.index.IndexBlock
- Direct Known Subclasses:
- GammaCompressedIndexBlock, SimpleIndexBlock
public abstract class IndexBlock
- extends Block
An indexBlock stores wordEntries.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexBlock
public IndexBlock(int blockSize)
addEntry
public abstract boolean addEntry(WordEntry entry)
- Adds the given wordEntry to the indexBlock.
clear
public void clear()
- Description copied from class:
Block
- Empties the block.
- Overrides:
clear
in class Block
- See Also:
Block.clear()
findEntryPrefixedBy
public WordEntry findEntryPrefixedBy(char[] word,
boolean isCaseSensitive)
findExactEntry
public WordEntry findExactEntry(char[] word)
isEmpty
public abstract boolean isEmpty()
- Returns whether the block is empty or not (if it doesn't contain any wordEntry).
nextEntry
public abstract boolean nextEntry(WordEntry entry)
- Finds the next wordEntry and stores it in the given entry.
reset
public void reset()
Copyright © 2011. All Rights Reserved.