Package org.openntf.domino.helpers

Examples of org.openntf.domino.helpers.DocumentSorter.sort()


    String sSearch = "FIELD Author contains \"Aline Winters\"";
    org.openntf.domino.DocumentCollection dc = Factory.getSession().getCurrentDatabase().FTSearch(sSearch, 500);
    List criteria = new ArrayList();
    criteria.add("Date");
    DocumentSorter sorter = new org.openntf.domino.helpers.DocumentSorter(dc, criteria);
    DocumentCollection results = sorter.sort();
    ExtLibUtil.getViewScope().put("javaTest", results.getCount());
    return results;
  }

  public void processFormula() {
View Full Code Here


    criteria.add("@modifieddate");
    try {
      DocumentSorter sorter = new DocumentSorter(coll, criteria);
      //      System.out.println("SORTING...");
      long startTime = System.nanoTime();
      DocumentCollection sortedColl = sorter.sort();
      long endTime = System.nanoTime();
      System.out.println("Completed resort in " + ((endTime - startTime) / 1000000) + "ms");
      //      System.out.println("SORTED");
      for (Document doc : sortedColl) {
        System.out.println(doc.getItemValueString("MainSortValue") + " " + doc.getLastModifiedDate().getTime() + " "
View Full Code Here

      System.out.println("Starting resort of " + coll.getCount() + " documents");
      //      }
      //      System.out.println("SORTING...");

      long startTime = System.nanoTime();
      DocumentCollection sortedColl = sorter.sort();
      long endTime = System.nanoTime();
      System.out.println("Completed resort of " + sortedColl.getCount() + " in " + ((endTime - startTime) / 1000000) + " ms");
      //      int count = 0;
      //      for (Document doc : sortedColl) {
      //        //        System.out.println(doc.getLastModifiedDate().getTime() + " " + doc.getNoteID());
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.