Package org.teiid.internal.core.index
Class GammaCompressedIndexBlock
- java.lang.Object
-
- org.teiid.internal.core.index.Block
-
- org.teiid.internal.core.index.IndexBlock
-
- org.teiid.internal.core.index.GammaCompressedIndexBlock
-
public class GammaCompressedIndexBlock extends IndexBlock
Uses prefix coding on words, and gamma coding of document numbers differences.
-
-
Constructor Summary
Constructors Constructor Description GammaCompressedIndexBlock(int blockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEmpty()Returns whether the block is empty or not (if it doesn't contain any wordEntry).booleannextEntry(WordEntry entry)Finds the next wordEntry and stores it in the given entry.voidreset()-
Methods inherited from class org.teiid.internal.core.index.IndexBlock
findEntryPrefixedBy, findExactEntry
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Description copied from class:IndexBlockReturns whether the block is empty or not (if it doesn't contain any wordEntry).- Specified by:
isEmptyin classIndexBlock- See Also:
IndexBlock.isEmpty()
-
nextEntry
public boolean nextEntry(WordEntry entry)
Description copied from class:IndexBlockFinds the next wordEntry and stores it in the given entry.- Specified by:
nextEntryin classIndexBlock- See Also:
IndexBlock.nextEntry(org.teiid.internal.core.index.WordEntry)
-
reset
public void reset()
- Overrides:
resetin classIndexBlock- See Also:
IndexBlock.reset()
-
-