本文整理了Java中org.mongodb.morphia.query.Query.fetch
方法的一些代码示例,展示了Query.fetch
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.fetch
方法的具体详情如下:
包路径:org.mongodb.morphia.query.Query
类名称:Query
方法名:fetch
暂无
代码示例来源:origin: org.actframework/act-morphia
@Override
public MorphiaIterator<MODEL_TYPE, MODEL_TYPE> fetch(FindOptions findOptions) {
return mq.fetch(findOptions);
}
代码示例来源:origin: org.actframework/act-morphia
@Override
public MorphiaIterator<MODEL_TYPE, MODEL_TYPE> fetch() {
return mq.fetch();
}
代码示例来源:origin: BlackLabs/play-morphia
public <T extends Model> Iterable<T> fetch() {
return (Iterable<T>) q_.fetch();
}
代码示例来源:origin: stackoverflow.com
public void readDataStore() throws IOException {
final Query query = document_datastore.find(DocumentPojo.class);
query.fetch().forEach(obj -> {
try {
System.out.println(obj.getDocid());
} catch (final IOException e) {
e.printStackTrace();
}
});
代码示例来源:origin: org.mongodb.morphia/morphia
/**
* Creates an Iterator over the results of the operation.
*
* @return the Iterator
*/
@Override
public Iterator<T> iterator() {
return outputType == OutputType.INLINE ? getInlineResults() : createQuery().fetch().iterator();
}
代码示例来源:origin: RestExpress/RestExpress-Examples
public Iterable<Identifier> findIdsByBlogId(UUID blogId)
{
Query<BlogEntry> blogEntries = getDataStore().createQuery(BlogEntry.class).field("blogId").equal(blogId).retrievedFields(true, "_id");
return new IdentifiableIterable(blogEntries.fetch());
}
内容来源于网络,如有侵权,请联系作者删除!