addCollection (QueryResultsProcessor - Java

Adds a pre-created DocumentCollection or ViewEntryCollection of documents to be included in the sorted and formatted results. The collection can be created by any means.

Defined in

QueryResultsProcessor

Syntax

public void addCollection(lotus.domino.Base collection, String referencename)
    throws NotesException

Parameters

lotus.domino.Base collection

The pre-created DocumentCollection or ViewEntryCollection object to be included in QueryResultsProcessor execution.

String referencename

A unique name (to the QueryResultsProcessor instance) of the input collection. This name is used in returned entries when the origin of results is desired and in addFormula method calls to override the data used to create sorted column values.

Example

QueryResultsProcessor qrp = dbb.createQueryResultsProcessor ();
DominoQuery dq = dbb.createDominoQuery();
dq.setMaxScanEntries(90000);
qrp.addDominoQuery(dq, “sales_person = ‘Trudi Ayton’”, ‘coll2’);