@Override public E next() { Document next = this.previousDocument; getNextStudy(); if (converter != null) { return converter.convertToDataModelType(next); } else { return (E) next; } }
@Override public E next() { Document next = (Document) mongoCursor.next(); if (filter != null) { next = filter.apply(next); } if (converter != null) { return converter.convertToDataModelType(next); } else { return (E) next; } }
@Override public Project convertToDataModelType(Document object) { Document projects = (Document) object.get("projects"); return super.convertToDataModelType(projects); }
@Override public E next() { Document next = clinicalAnalysisListBuffer.remove(); if (filter != null) { next = filter.apply(next); } addAclInformation(next, options); if (converter != null) { return (E) converter.convertToDataModelType(next); } else { return (E) next; } }
public T convertToDataModelType(Document document, QueryOptions queryOptions) { List<AnnotationSet> annotationSets = annotationConverter.fromDBToAnnotation((List<Document>) document.get(ANNOTATION_SETS), (Document) document.get(AnnotationMongoDBAdaptor.AnnotationSetParams.PRIVATE_VARIABLE_SET_MAP.key()), queryOptions); T t = super.convertToDataModelType(document); t.setAnnotationSets(annotationSets); return t; } }