Package org.openntf.domino

Examples of org.openntf.domino.NoteCollection.buildCollection()


      }
      Set<Document> secondReference = new HashSet<Document>();
      iterateAllDocuments(db, secondReference);
      //      System.gc();
      NoteCollection nc = db.createNoteCollection(false);
      nc.buildCollection();
      iterateSecondReferences(secondReference);
      iterateThirdReferences();

      View view = db.getView("NameMessageEventMessages");
      List<String> keys = new ArrayList<String>();
View Full Code Here


      dbDocs = db.getAllDocuments().getCount();
      long testStartTime = System.nanoTime();
      NoteCollection nc = db.createNoteCollection(false);
      nc.selectAllDataNotes(true);
      nc.setSelectionFormula("@Begins(Title; \"B\")"); //NTF comment or uncomment this to toggle testing selection formula impact
      nc.buildCollection();
      int[] nids = nc.getNoteIDs();
      long collectionTime = System.nanoTime();
      collectionBuildNS = collectionTime - testStartTime;
      collectionSize = nids.length;
      Document[] documents = new Document[collectionSize];
View Full Code Here

      dbDocs = db.getAllDocuments().getCount();
      long testStartTime = System.nanoTime();
      NoteCollection nc = db.createNoteCollection(false);
      nc.selectAllDataNotes(true);
      nc.setSelectionFormula("@Begins(Title; \"B\")"); //NTF comment or uncomment this to toggle testing selection formula impact
      nc.buildCollection();
      int[] nids = nc.getNoteIDs();
      long collectionTime = System.nanoTime();
      collectionBuildNS = collectionTime - testStartTime;
      collectionSize = nids.length;
      Document[] documents = new Document[collectionSize];
View Full Code Here

      marktime = System.nanoTime();
      timelog("Beginning first notelist...");
      NoteCollection notecoll = db.createNoteCollection(false);
      notecoll.setSelectDocuments(true);
      notecoll.setSelectionFormula("@Begins(Title; \"B\")");
      notecoll.buildCollection();
      //      DocumentCollection coll = db.search("@Begins(Title; \"B\")");
      timelog("Starting note coordinates of " + notecoll.getCount() + " documents");
      //      for (Document doc : notecoll) {
      for (String nid : notecoll) {
        NoteCoordinate nc = new NoteCoordinate(notecoll, nid);
View Full Code Here

      }
      Set<Document> secondReference = new HashSet<Document>();
      iterateAllDocuments(db, secondReference);
      System.gc();
      NoteCollection nc = db.createNoteCollection(false);
      nc.buildCollection();
      iterateSecondReferences(secondReference);
      iterateThirdReferences();

      long elapsed = System.nanoTime() - start;
      StringBuilder sb = new StringBuilder();
View Full Code Here

  @Deprecated
  public NoteCollection getNoteCollection() {
    NoteCollection nc = getAncestorDatabase().createNoteCollection(false);
    nc.setSelectDocuments(true);
    nc.setSelectionFormula(getSelectionFormula());
    nc.buildCollection();
    return nc;
  }

  /*
   * (non-Javadoc)
 
View Full Code Here

    Set<SelectOption> noteClass = new java.util.HashSet<SelectOption>();
    noteClass.add(SelectOption.DOCUMENTS);
    nc.setSelectOptions(noteClass);
    String selectionFormula = getSelectionFormula();
    nc.setSelectionFormula(selectionFormula);
    nc.buildCollection();
    return nc.getCount();
  }

  public String getSelectionFormula() {
    StringBuilder sb = new StringBuilder();
View Full Code Here

    if (since.after(this.getLastModified().toJavaDate()))
      return 0;
    NoteCollection nc = createNoteCollection(false);
    nc.setSinceTime(since);
    nc.setSelectOptions(noteClass);
    nc.buildCollection();
    return nc.getCount();
  }

  public int[] getDailyModifiedNoteCount(final java.util.Date since) {
    Set<SelectOption> noteClass = new java.util.HashSet<SelectOption>();
View Full Code Here

  @Override
  public String getNoteID() {
    NoteCollection notes = this.getParentDatabase().createNoteCollection(false);
    notes.setSelectOutlines(true);
    notes.setSelectionFormula("$TITLE=\"" + this.getName().replace("\"", "\\\"") + "\"");
    notes.buildCollection();
    return notes.getFirstNoteID();
  }

  /*
   * (non-Javadoc)
 
View Full Code Here

  @Override
  public String getUniversalID() {
    NoteCollection notes = this.getParentDatabase().createNoteCollection(false);
    notes.setSelectOutlines(true);
    notes.setSelectionFormula("$TITLE=\"" + this.getName().replace("\"", "\\\"") + "\"");
    notes.buildCollection();
    return notes.getUNID(notes.getFirstNoteID());
  }

  /*
   * (non-Javadoc)
 
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.