org.teiid.internal.core.index
Class IndexBlock

java.lang.Object
  extended by org.teiid.internal.core.index.Block
      extended by org.teiid.internal.core.index.IndexBlock
Direct Known Subclasses:
GammaCompressedIndexBlock, SimpleIndexBlock

public abstract class IndexBlock
extends Block

An indexBlock stores wordEntries.


Field Summary
 
Fields inherited from class org.teiid.internal.core.index.Block
blockSize, field
 
Constructor Summary
IndexBlock(int blockSize)
           
 
Method Summary
abstract  boolean addEntry(WordEntry entry)
          Adds the given wordEntry to the indexBlock.
 void clear()
          Empties the block.
 WordEntry findEntryPrefixedBy(char[] word, boolean isCaseSensitive)
           
 WordEntry findExactEntry(char[] word)
           
abstract  boolean isEmpty()
          Returns whether the block is empty or not (if it doesn't contain any wordEntry).
abstract  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.Block
flush, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexBlock

public IndexBlock(int blockSize)
Method Detail

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.