Package dovetaildb.score

Examples of dovetaildb.score.Score


      boolean isLeaf = (LEAF_MASK & page) == LEAF_MASK;
      if (isLeaf) {
        page &= ~LEAF_MASK;
        scanners.add(new LeafScanner(page, revNum, score));
      } else {
        Score nextScore = null;
        if (score != null) {
          nextScore = score.duplicate();
          nextScore.add((byte)t);
        }
        fetchSubRange(page, termIdx+1, scanners, term1, term2,
            t>t1 || isOpen1, t<t2 || isOpen2,
            isExclusive1, isExclusive2, revNum, nextScore);
      }
View Full Code Here


  @Override
  public Scanner fetchRange(byte[] prefix,
      byte[] term1, byte[] term2,
      boolean isExclusive1, boolean isExclusive2,
      long revNum, Scorer scorer) {
    Score score = scorer == null ? null : scorer.newScore();
    LookedUpTerm prefixResult = descendByTerm(prefix);
    for(int i=0; i < prefixResult.termPrefixLen; i++) {
      score.add(prefix[i]);
    }
    final int page = prefixResult.page;
    boolean isLeaf = (LEAF_MASK & page) == LEAF_MASK;
    if (isLeaf) {
      return new LeafScanner(page, revNum, score);
View Full Code Here

TOP

Related Classes of dovetaildb.score.Score

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.