public interface DbQueryResult<CHAINTYPE extends DbQueryResult<?>>
Modifier and Type | Method and Description |
---|---|
<T> T |
build(int skip,
int count,
CollectionSearchQuery.CollectionEntryProcessor<T> processor)
Build a result out of the collection entries
|
default List<CollectionEntry> |
collectEntries()
Collect all
CollectionEntry objects as list |
List<CollectionEntry> |
collectEntries(int skip,
int count)
Collect all
CollectionEntry objects as list |
void |
collectEntries(int skip,
int count,
Collection<CollectionEntry> collection)
Collect all
CollectionEntry objects in a Collection |
Set<Integer> |
collectIds(int skip,
int count)
Return the note ids of the search result as an ordered
Set . |
void |
collectIds(int skip,
int count,
Collection<Integer> idTable)
Adds all note ids of the search result to a note ID collection, with special support
for
IDTable s |
CHAINTYPE |
computeValues(Map<String,String> itemsAndFormulas)
Dynamically computes virtual item values from the summary buffer data
|
CHAINTYPE |
computeValues(String... itemsAndFormulas)
Dynamically computes virtual item values from the summary buffer data
|
void |
forEachDocument(int skip,
int count,
BiConsumer<Document,Loop> consumer)
Iterates over each document in the search result
|
Stream<Document> |
getDocuments() |
Optional<IDTable> |
getNoteIds()
Returns an
IDTable of documents matching the search. |
Database |
getParentDatabase()
Returns the
Database that was used to run the query |
int |
size()
Returns the total number of results
|
CHAINTYPE |
sort(DominoCollection collection)
Sorts/filters the note ids of the search result like the specified
DominoCollection . |
Database getParentDatabase()
Database
that was used to run the queryOptional<IDTable> getNoteIds()
IDTable
of documents matching the search.Optional
describing the documents matched by the search, or
an empty one if the search did not request a document collection<T> T build(int skip, int count, CollectionSearchQuery.CollectionEntryProcessor<T> processor)
T
- result typeskip
- paging offsetcount
- paging countprocessor
- builder code to produce the resultSet<Integer> collectIds(int skip, int count)
Set
.
Implementations are likely, but not guaranteed, to return a LinkedHashSet
.
skip
- paging offsetcount
- paging countvoid collectIds(int skip, int count, Collection<Integer> idTable)
IDTable
sskip
- paging offsetcount
- paging countidTable
- note ID collectionCHAINTYPE computeValues(String... itemsAndFormulas)
itemsAndFormulas
- tuples with item name/formula; leave formula empty to read an existing document item, e.g. ["_created", "@Created", "Form", ""]CHAINTYPE computeValues(Map<String,String> itemsAndFormulas)
itemsAndFormulas
- map of item/formula pairsCHAINTYPE sort(DominoCollection collection)
DominoCollection
.
Note ids that are not part of the collection will be ignored.collection
- collectiondefault List<CollectionEntry> collectEntries()
CollectionEntry
objects as listList<CollectionEntry> collectEntries(int skip, int count)
CollectionEntry
objects as listskip
- paging offsetcount
- paging countvoid collectEntries(int skip, int count, Collection<CollectionEntry> collection)
CollectionEntry
objects in a Collection
skip
- paging offsetcount
- paging countcollection
- collection to add entriesvoid forEachDocument(int skip, int count, BiConsumer<Document,Loop> consumer)
skip
- paging offsetcount
- paging countconsumer
- consumer to receive documentint size()
Copyright © 2019–2021 HCL. All rights reserved.