Examples of doc()


Examples of dovetaildb.querynode.OrderedOrQueryNode.doc()

      clauses.add(q);
    }
    if (clauses.size() > 0) {
      QueryNode idQuery = new OrderedOrQueryNode(clauses, null, null, null, false, false);
      do {
        long docId = idQuery.doc();
        data.skipTo(docId);
        do {
          edits.add(new EditRec(docId, data.term(), true));
        } while(data.nextTerm() == NextStatus.NEXT_TERM);
      } while(idQuery.next());
View Full Code Here

Examples of dovetaildb.querynode.QueryNode.doc()

public class QueryNodeDbResultTest extends TestCase {
 
  public void testBasic() {
    QueryNode node = QueryNodeTest.testingQueryNode();
    QueryNodeDbResult result = new QueryNodeDbResult(node);
    result.initialize(node.doc());
    assertTrue(result.isObject());
    assertEquals("002",result.derefByKey("id").simplify());
    assertEquals("32",result.derefByKey("age").simplify());
    assertEquals("phil",result.derefByKey("name").simplify());
    assertEquals(null,result.derefByKey("xxx").simplify());
View Full Code Here

Examples of dovetaildb.scan.Scanner.doc()

    long[] docIds = new long[idTerms.length];
    Scanner idScanner = disjunctiveScannerFromTerms(idTerms, index, revNum);
    Scanner delScanner = index.fetchDeletions(revNum);
    Scanner scanner = ScannerUtil.andNotScanner(idScanner, delScanner);
    while (scanner.next()) {
      long docId = scanner.doc();
      for(int i = 0; i < idTerms.length; i++) {
        if (scanner.knownToHaveTerm(idTerms[i]))
          docIds[i] = docId;
      }
    }
View Full Code Here

Examples of flex2.compiler.common.CompilerConfiguration.doc()

    String[] sourceMimeTypes = flex2.tools.WebTierAPI.getSourcePathMimeTypes();

    CompilerConfiguration compilerConfig = configuration.getCompilerConfiguration();

    // asdoc should always have -doc=true so that it emits doc info. If it is false force it back to true.
    if(!compilerConfig.doc())
    {
        compilerConfig.cfgDoc(null, true);
    }
   
    // create a SourcePath...
View Full Code Here

Examples of org.apache.avro.Schema.Field.doc()

            String outname = (isPartialSchema) ? pigFields[i].getName() : inputField.name();
            if (outname == null)
                outname = FIELD_NAME + "_" + i; // field name cannot be null

            /* get doc of output */
            String doc = (isPartialSchema) ? pigFields[i].getDescription() : inputField.doc();

            outFields.add(new Field(outname, fieldSchema, doc, null));
        }

        outSchema.setFields(outFields);
View Full Code Here

Examples of org.apache.lucene.index.NumericFieldUpdates.UpdatesIterator.doc()

              } else if (mergingFields != null) {
                // document isn't deleted, check if any of the fields have an update to it
                int newDoc = -1;
                for (int idx = 0; idx < mergingFields.length; idx++) {
                  UpdatesIterator updatesIter = updatesIters[idx];
                  if (updatesIter.doc() == j) { // document has an update
                    if (mergedDeletesAndUpdates == null) {
                      mergedDeletesAndUpdates = readerPool.get(merge.info, true);
                      docMap = getDocMap(merge, mergeState);
                    }
                    if (newDoc == -1) { // map once per all field updates, but only if there are any updates
View Full Code Here

Examples of org.apache.lucene.index.TermDocs.doc()

            //field value.
            TermDocs matchingDocs = reader.termDocs(searchTerms[i]);
            try {
                if (matchingDocs != null) {
                    while(matchingDocs.next()) {
                        bits.set(matchingDocs.doc());
                    }
                }
            }
            finally {
                if (matchingDocs != null) {
View Full Code Here

Examples of org.apache.lucene.index.TermDocs.doc()

          private int _doc = -1;
          @Override
          public int advance(int target) throws IOException {
            if (td.skipTo(target)){
              _doc = td.doc();
            }
            else{
              td.close();
              _doc= DocIdSetIterator.NO_MORE_DOCS;
            }
View Full Code Here

Examples of org.apache.lucene.index.TermDocs.doc()

          }

          @Override
          public int nextDoc() throws IOException {
            if (td.next()){
              _doc = td.doc();
            }
            else{
              td.close();
              _doc = DocIdSetIterator.NO_MORE_DOCS;
            }
View Full Code Here

Examples of org.apache.lucene.index.TermDocs.doc()

        int minID=-1;
            int maxID=-1;
            if(termDocs.next())
            {
              df++;
                  int docid = termDocs.doc();
                  order.add(docid, order.get(docid) | bit);
                  minID = docid;
                  while (termDocs.next())
              {
                    df++;
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.