Examples of skipTo()


Examples of org.sindice.siren.index.codecs.siren10.Siren10PostingsReader.Siren10DocsNodesAndPositionsEnum.skipTo()

    final DocsEnum docsEnum = aReader.termDocsEnum(new Term(DEFAULT_TEST_FIELD, new BytesRef("aaa")));
    assertTrue(docsEnum instanceof Siren10DocsEnum);
    final Siren10DocsNodesAndPositionsEnum e = ((Siren10DocsEnum) docsEnum).getDocsNodesAndPositionsEnum();

    // first skip in skiplist is at 512
    assertTrue(e.skipTo(502));
    assertEquals(502, e.doc());
    assertEquals(1, e.nodeFreqInDoc());

    // must have used the second skip
    assertTrue(e.skipTo(1624));
View Full Code Here

Examples of uk.ac.ucl.panda.utility.structure.TermPositions.skipTo()

     * UCL Proof Scan
     */

    // positions
    TermPositions termPos = reader.termPositions(term);
    termPos.skipTo(doc);
    int pos = 0;
    int i = termPos.freq();
    while (termPos.doc() == doc && i > 0) {
      System.out.println("docno: " + doc + " pos: "
          + termPos.nextPosition());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.