Package org.teiid.internal.core.index

Examples of org.teiid.internal.core.index.WordEntry


        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);
View Full Code Here

TOP

Related Classes of org.teiid.internal.core.index.WordEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.