Examples of ord()


Examples of org.apache.lucene.index.TermsEnum.ord()

     
      assert termsEnum != null;
      if (termsEnum.next() != null) {
        // fill into a OpenBitSet
        do {
          termSet.set(termsEnum.ord());
        } while (termsEnum.next() != null);
      } else {
        return null;
      }
     
View Full Code Here

Examples of org.apache.lucene.index.TermsEnum.ord()

     
      assert termsEnum != null;
      if (termsEnum.next() != null) {
        // fill into a OpenBitSet
        do {
          long ord = termsEnum.ord();
          if (ord >= 0) {
            termSet.set(ord);
          }
        } while (termsEnum.next() != null);
      } else {
View Full Code Here

Examples of org.apache.lucene.index.TermsEnum.ord()

     
      assert termsEnum != null;
      if (termsEnum.next() != null) {
        // fill into a OpenBitSet
        do {
          long ord = termsEnum.ord();
          if (ord >= 0) {
            termSet.set(ord);
          }
        } while (termsEnum.next() != null);
      } else {
View Full Code Here

Examples of org.apache.lucene.index.TermsEnum.ord()

     
      assert termsEnum != null;
      if (termsEnum.next() != null) {
        // fill into a OpenBitSet
        do {
          termSet.set(termsEnum.ord());
        } while (termsEnum.next() != null);
      } else {
        return null;
      }
     
View Full Code Here

Examples of org.apache.lucene.index.TermsEnum.ord()

     
      assert termsEnum != null;
      if (termsEnum.next() != null) {
        // fill into a OpenBitSet
        do {
          long ord = termsEnum.ord();
          if (ord >= 0) {
            termSet.set(ord);
          }
        } while (termsEnum.next() != null);
      } else {
View Full Code Here

Examples of org.apache.lucene.index.TermsEnum.ord()

     
      assert termsEnum != null;
      if (termsEnum.next() != null) {
        // fill into a OpenBitSet
        do {
          termSet.set(termsEnum.ord());
        } while (termsEnum.next() != null);
      } else {
        return DocIdSet.EMPTY_DOCIDSET;
      }
     
View Full Code Here

Examples of org.apache.lucene.index.TermsEnum.ord()

     
      assert termsEnum != null;
      if (termsEnum.next() != null) {
        // fill into a bitset
        do {
          long ord = termsEnum.ord();
          if (ord >= 0) {
            termSet.set(ord);
          }
        } while (termsEnum.next() != null);
      } else {
View Full Code Here

Examples of org.apache.lucene.index.TermsEnum.ord()

     
      assert termsEnum != null;
      if (termsEnum.next() != null) {
        // fill into a bitset
        do {
          termSet.set(termsEnum.ord());
        } while (termsEnum.next() != null);
      } else {
        return null;
      }
     
View Full Code Here

Examples of org.apache.lucene.index.TermsEnum.ord()

    Terms terms = ir.getTermVector(0, "foo");
    assertNotNull(terms);
    TermsEnum termsEnum = terms.iterator(null);
    assertEquals(SeekStatus.FOUND, termsEnum.seekCeil(new BytesRef("this")));
    try {
      termsEnum.ord();
      fail();
    } catch (UnsupportedOperationException expected) {
      // expected exception
    }
   
View Full Code Here

Examples of org.apache.lucene.index.TermsEnum.ord()

                // slow option of hitting termsEnum for every term in the index.
                TermsEnum globalTermsEnum = valueSource.globalOrdinalsValues().termsEnum();
                try {
                    for (BytesRef term = globalTermsEnum.next(); term != null; term = globalTermsEnum.next()) {
                        if (accept(term)) {
                            acceptedGlobalOrdinals.set(globalTermsEnum.ord());
                        }
                    }
                } catch (IOException e) {
                    throw ExceptionsHelper.convertToElastic(e);
                }
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.