public class QueryPagers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
countPaged(java.lang.String keyspace,
java.lang.String columnFamily,
java.nio.ByteBuffer key,
SliceQueryFilter filter,
ConsistencyLevel consistencyLevel,
int pageSize,
long now)
Convenience method that count (live) cells/rows for a given slice of a row, but page underneath.
|
static QueryPager |
localPager(Pageable command) |
static boolean |
mayNeedPaging(Pageable command,
int pageSize) |
static QueryPager |
pager(Pageable command,
ConsistencyLevel consistencyLevel,
PagingState state) |
static java.util.Iterator<ColumnFamily> |
pageRowLocally(ColumnFamilyStore cfs,
java.nio.ByteBuffer key,
int pageSize)
Convenience method to (locally) page an internal row.
|
public static boolean mayNeedPaging(Pageable command, int pageSize)
public static QueryPager pager(Pageable command, ConsistencyLevel consistencyLevel, PagingState state)
public static QueryPager localPager(Pageable command)
public static java.util.Iterator<ColumnFamily> pageRowLocally(ColumnFamilyStore cfs, java.nio.ByteBuffer key, int pageSize)
public static int countPaged(java.lang.String keyspace, java.lang.String columnFamily, java.nio.ByteBuffer key, SliceQueryFilter filter, ConsistencyLevel consistencyLevel, int pageSize, long now) throws RequestValidationException, RequestExecutionException
Copyright © 2015 The Apache Software Foundation