org.lumongo.client.command.Query.setResultFetchType()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(225)

本文整理了Java中org.lumongo.client.command.Query.setResultFetchType方法的一些代码示例,展示了Query.setResultFetchType的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.setResultFetchType方法的具体详情如下:
包路径:org.lumongo.client.command.Query
类名称:Query
方法名:setResultFetchType

Query.setResultFetchType介绍

暂无

代码示例

代码示例来源:origin: lumongo/lumongo

  1. query.setResultFetchType(fetchType);
  2. query.setResultFetchType(fetchType);
  3. query.addFieldSort("issn");
  4. QueryResult queryResult = lumongoWorkPool.query(query);
  5. query.setResultFetchType(fetchType);
  6. query.addCountRequest("issn", 4);
  7. QueryResult queryResult = lumongoWorkPool.query(query);
  8. query.setResultFetchType(fetchType);
  9. query.addCountRequest("issn", 4);
  10. QueryResult queryResult = lumongoWorkPool.query(query);
  11. query.setResultFetchType(fetchType);
  12. query.addCountRequest("journalCountry", 4);
  13. query.addCountRequest("issn", 4);
  14. query.setResultFetchType(fetchType);
  15. query.addCountRequest("publicationDate", 15);
  16. query.setResultFetchType(fetchType);
  17. query.addCountRequest("publicationDate", 15);
  18. query.setResultFetchType(fetchType);
  19. QueryResult queryResult = lumongoWorkPool.query(query);
  20. query.setResultFetchType(fetchType);
  21. QueryResult queryResult = lumongoWorkPool.query(query);

代码示例来源:origin: lumongo/lumongo

  1. q.setResultFetchType(Lumongo.FetchType.FULL);

代码示例来源:origin: lumongo/lumongo

  1. Query sortQuery = new Query(MY_TEST_INDEX, "an:[0 TO 5]", 2).addFieldSort("an").setResultFetchType(Lumongo.FetchType.FULL);
  2. QueryResult first = lumongoWorkPool.query(sortQuery);
  3. assertEquals("Result size is not 2", 2, first.getResults().size());
  4. Query sortQuery = new Query(MY_TEST_INDEX, "an:[0 TO 5]", 2).addFieldSort("an").setResultFetchType(Lumongo.FetchType.FULL);
  5. QueryResult first = lumongoWorkPool.query(sortQuery);
  6. assertEquals("Result size is not 2", 2, first.getResults().size());
  7. Query sortQuery = new Query(MY_TEST_INDEX, "an:[0 TO 5]", 2).addFieldSort("an").setResultFetchType(Lumongo.FetchType.FULL);
  8. QueryResult first = lumongoWorkPool.query(sortQuery);
  9. assertEquals("Result size is not 2", 2, first.getResults().size());

相关文章