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 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
findEntryPrefixedBy, findExactEntry
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Description copied from class:IndexBlock
Returns whether the block is empty or not (if it doesn't contain any wordEntry).- Specified by:
isEmpty
in classIndexBlock
- See Also:
IndexBlock.isEmpty()
-
nextEntry
public boolean nextEntry(WordEntry entry)
Description copied from class:IndexBlock
Finds the next wordEntry and stores it in the given entry.- Specified by:
nextEntry
in classIndexBlock
- See Also:
IndexBlock.nextEntry(org.teiid.internal.core.index.WordEntry)
-
reset
public void reset()
- Overrides:
reset
in classIndexBlock
- See Also:
IndexBlock.reset()
-
-