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

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

本文整理了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

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());

相关文章