Examples of nextPosting()


Examples of ivory.core.data.index.PostingsReader.nextPosting()

      // set per postings list
      mModel.setDF(reader1.getNumberOfPostings());

      // performing PCP
      while (reader1.nextPosting(e1)) {

        // Here's a hidden dependency: How we do the blocking depends on
        // how the postings are sorted. If the postings are sorted in
        // ascending docno, then we can break out of the loop after
        // we've gone past the block bounds (as in code below).
View Full Code Here

Examples of ivory.core.data.index.PostingsReader.nextPosting()

        sLogger.debug(key + ": " + e1);

        PostingsReader reader2 = postings.getPostingsReader();

        while (reader2.nextPosting(e2)) {

          sLogger.debug(key + ": " + e1 + ", " + e2);

          if (e1.getDocno() == e2.getDocno())
            continue;
View Full Code Here

Examples of ivory.core.data.index.PostingsReader.nextPosting()

    LOG.info("term=" + termOrig + ", tokenized=" + termTokenized);
    reader = env.getPostingsReader(new Expression(termTokenized));
    df = reader.getNumberOfPostings();
    LOG.info("First ten postings: ");
    for (int i = 0; i < (df < 10 ? df : 10); i++) {
      reader.nextPosting(p);
      System.out.print(p);
    }

    System.out.println("\n");
View Full Code Here

Examples of ivory.core.data.index.PostingsReader.nextPosting()

    PostingsReader reader = postings2.getPostingsReader();

    int arr[] = null;

    reader.nextPosting(posting);
    arr = reader.getPositions();
    assertEquals(13, posting.getDocno());
    assertEquals(5, posting.getScore());
    assertEquals(1, arr[0]);
    assertEquals(4, arr[1]);
View Full Code Here

Examples of ivory.core.data.index.PostingsReader.nextPosting()

    assertEquals(4, arr[1]);
    assertEquals(5, arr[2]);
    assertEquals(10, arr[3]);
    assertEquals(23, arr[4]);

    reader.nextPosting(posting);
    arr = reader.getPositions();
    assertEquals(14, posting.getDocno());
    assertEquals(2, posting.getScore());
    assertEquals(2, arr[0]);
    assertEquals(23, arr[1]);
View Full Code Here

Examples of ivory.core.data.index.PostingsReader.nextPosting()

    assertEquals(14, posting.getDocno());
    assertEquals(2, posting.getScore());
    assertEquals(2, arr[0]);
    assertEquals(23, arr[1]);

    reader.nextPosting(posting);
    arr = reader.getPositions();
    assertEquals(24, posting.getDocno());
    assertEquals(1, posting.getScore());
    assertEquals(1, arr[0]);
  }
View Full Code Here

Examples of ivory.core.data.index.PostingsReader.nextPosting()

    PostingsReader reader = postings2.getPostingsReader();

    int arr[] = null;

    reader.nextPosting(posting);
    arr = reader.getPositions();
    assertEquals(13, posting.getDocno());
    assertEquals(5, posting.getScore());
    assertEquals(1, arr[0]);
    assertEquals(4, arr[1]);
View Full Code Here

Examples of ivory.core.data.index.PostingsReader.nextPosting()

    assertEquals(4, arr[1]);
    assertEquals(5, arr[2]);
    assertEquals(10, arr[3]);
    assertEquals(23, arr[4]);

    reader.nextPosting(posting);
    arr = reader.getPositions();
    assertEquals(14, posting.getDocno());
    assertEquals(2, posting.getScore());
    assertEquals(2, arr[0]);
    assertEquals(23, arr[1]);
View Full Code Here

Examples of ivory.core.data.index.PostingsReader.nextPosting()

    assertEquals(14, posting.getDocno());
    assertEquals(2, posting.getScore());
    assertEquals(2, arr[0]);
    assertEquals(23, arr[1]);

    reader.nextPosting(posting);
    arr = reader.getPositions();
    assertEquals(24, posting.getDocno());
    assertEquals(1, posting.getScore());
    assertEquals(1, arr[0]);
View Full Code Here

Examples of ivory.core.data.index.PostingsReader.nextPosting()

    assertEquals(16, postings2.getCf());

    reader = postings2.getPostingsReader();
    arr = null;

    reader.nextPosting(posting);
    arr = reader.getPositions();
    assertEquals(13, posting.getDocno());
    assertEquals(5, posting.getScore());
    assertEquals(1, arr[0]);
    assertEquals(4, arr[1]);
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.