com.datastax.driver.core.querybuilder.Select.setFetchSize()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(223)

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

Select.setFetchSize介绍

暂无

代码示例

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

select.limit((int) total);
} else {
  select.setFetchSize((int) total);

代码示例来源:origin: otaviojava/Easy-Cassandra

@Override
public SelectBuilder<T> withFetchSize(int fetchSize) {
  select.setFetchSize(fetchSize);
  return this;
}

代码示例来源:origin: org.apache.james/apache-james-backends-cassandra

private CompletableFuture<?> truncate(CassandraAsyncExecutor executor, String name) {
  return executor.execute(
    QueryBuilder.select()
      .from(name)
      .limit(1)
      .setFetchSize(1))
    .thenCompose(resultSet -> truncateIfNeeded(executor, name, resultSet));
}

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

.groupBy("a", "b")
        .orderBy(desc("b"), desc("c"))
        .setFetchSize(Integer.MAX_VALUE)))
.containsExactly(
  row(4, 8, 2, 1L, 24),
        .orderBy(desc("b"), desc("c"))
        .limit(3)
        .setFetchSize(Integer.MAX_VALUE)))
.containsExactly(row(4, 8, 2, 12), row(2, 4, 3, 6), row(1, 4, 2, 12));

代码示例来源:origin: apache/james-project

private Mono<?> truncate(CassandraAsyncExecutor executor, String name) {
    return Mono.fromFuture(executor.execute(
        QueryBuilder.select()
            .from(name)
            .limit(1)
            .setFetchSize(1)))
        .filter(resultSet -> !resultSet.isExhausted())
        .flatMap(ignored -> Mono.fromFuture(executor.execute(QueryBuilder.truncate(name))));
  }
}

代码示例来源:origin: com.baidu.hugegraph/hugegraph-cassandra

select.limit((int) total);
} else {
  select.setFetchSize((int) total);

代码示例来源:origin: net.oneandone/troilus-core-java7

select.setFetchSize(data.getFetchSize());

代码示例来源:origin: net.oneandone.troilus/troilus-core-java7

select.setFetchSize(data.getFetchSize());

代码示例来源:origin: net.oneandone.troilus/troilus-core-java7

select.setFetchSize(queryData.getFetchSize());

代码示例来源:origin: net.oneandone/troilus-core-java7

select.setFetchSize(queryData.getFetchSize());

代码示例来源:origin: com.datastax.dse/dse-java-driver-core

.groupBy("a", "b")
        .orderBy(desc("b"), desc("c"))
        .setFetchSize(Integer.MAX_VALUE)))
.containsExactly(
  row(4, 8, 2, 1L, 24),
        .orderBy(desc("b"), desc("c"))
        .limit(3)
        .setFetchSize(Integer.MAX_VALUE)))
.containsExactly(row(4, 8, 2, 12), row(2, 4, 3, 6), row(1, 4, 2, 12));

相关文章