super(name);
}
public void testAddAndRetrieveEntry() {
IndexBlock indexBlock = new GammaCompressedIndexBlock(IIndexConstants.BLOCK_SIZE);
WordEntry entry = new WordEntry();
//adding entries - 256 chars
char[] word = "12345678 abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn".toCharArray();//$NON-NLS-1$
entry.reset(word);
entry.addRef(1);
indexBlock.addEntry(entry);
word = "12345678 abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn q".toCharArray();//$NON-NLS-1$
entry.reset(word);
entry.addRef(1);
indexBlock.addEntry(entry);
//reading entries
indexBlock.reset();
indexBlock.nextEntry(entry);