use of com.couchbase.client.java.search.result.SearchQueryResult in project jnosql-diana-driver by eclipse.
the class DefaultCouchbaseDocumentCollectionManager method search.
@Override
public List<DocumentEntity> search(SearchQuery query) throws NullPointerException {
requireNonNull(query, "query is required");
SearchQueryResult result = bucket.query(query);
Set<String> keys = StreamSupport.stream(result.spliterator(), false).map(SearchQueryRow::id).collect(toSet());
return convert(keys, bucket);
}
Aggregations