Package org.openntf.domino.iterators

Examples of org.openntf.domino.iterators.DocumentIterator


    //NTF if the DocumentList was sorted, then we need to use a regular DocumentIterator that will
    //walk the noteid array, because the order matters.
    //If it's not sorted (ie: the original DocumentCollection was not sorted) then we merge the noteids into
    //a new DocumentCollection from the parent and use the DocumentCollectionIterator because it's 4 times faster
    if (isSorted()) {
      return new DocumentIterator(this);
    } else {
      org.openntf.domino.Database db = getParentDatabase();
      org.openntf.domino.impl.DocumentCollection mergeColl = (org.openntf.domino.impl.DocumentCollection) db
          .createMergableDocumentCollection();
      for (int nid : getNids()) {
View Full Code Here

TOP

Related Classes of org.openntf.domino.iterators.DocumentIterator

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.