本文整理了Java中org.lumongo.client.command.Query.setResultFetchType
方法的一些代码示例,展示了Query.setResultFetchType
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.setResultFetchType
方法的具体详情如下:
包路径:org.lumongo.client.command.Query
类名称:Query
方法名:setResultFetchType
暂无
代码示例来源:origin: lumongo/lumongo
query.setResultFetchType(fetchType);
query.setResultFetchType(fetchType);
query.addFieldSort("issn");
QueryResult queryResult = lumongoWorkPool.query(query);
query.setResultFetchType(fetchType);
query.addCountRequest("issn", 4);
QueryResult queryResult = lumongoWorkPool.query(query);
query.setResultFetchType(fetchType);
query.addCountRequest("issn", 4);
QueryResult queryResult = lumongoWorkPool.query(query);
query.setResultFetchType(fetchType);
query.addCountRequest("journalCountry", 4);
query.addCountRequest("issn", 4);
query.setResultFetchType(fetchType);
query.addCountRequest("publicationDate", 15);
query.setResultFetchType(fetchType);
query.addCountRequest("publicationDate", 15);
query.setResultFetchType(fetchType);
QueryResult queryResult = lumongoWorkPool.query(query);
query.setResultFetchType(fetchType);
QueryResult queryResult = lumongoWorkPool.query(query);
代码示例来源:origin: lumongo/lumongo
q.setResultFetchType(Lumongo.FetchType.FULL);
代码示例来源:origin: lumongo/lumongo
Query sortQuery = new Query(MY_TEST_INDEX, "an:[0 TO 5]", 2).addFieldSort("an").setResultFetchType(Lumongo.FetchType.FULL);
QueryResult first = lumongoWorkPool.query(sortQuery);
assertEquals("Result size is not 2", 2, first.getResults().size());
Query sortQuery = new Query(MY_TEST_INDEX, "an:[0 TO 5]", 2).addFieldSort("an").setResultFetchType(Lumongo.FetchType.FULL);
QueryResult first = lumongoWorkPool.query(sortQuery);
assertEquals("Result size is not 2", 2, first.getResults().size());
Query sortQuery = new Query(MY_TEST_INDEX, "an:[0 TO 5]", 2).addFieldSort("an").setResultFetchType(Lumongo.FetchType.FULL);
QueryResult first = lumongoWorkPool.query(sortQuery);
assertEquals("Result size is not 2", 2, first.getResults().size());
内容来源于网络,如有侵权,请联系作者删除!