public PagingState state() { return lastReturned == null ? null : new PagingState(null, lastReturned, maxRemaining(), remainingInPartition()); }
public PagingState state() { return lastReturned == null ? null : new PagingState(null, lastReturned, maxRemaining(), remainingInPartition()); }
public PagingState state() { return lastReturned == null ? null : new PagingState(null, lastReturned, maxRemaining(), remainingInPartition()); }
@Override public SinglePartitionPager withUpdatedLimit(DataLimits newLimits) { return new SinglePartitionPager(command.withUpdatedLimit(newLimits), protocolVersion, lastReturned, maxRemaining(), remainingInPartition()); }
@Override public SinglePartitionPager withUpdatedLimit(DataLimits newLimits) { return new SinglePartitionPager(command.withUpdatedLimit(newLimits), protocolVersion, lastReturned, maxRemaining(), remainingInPartition()); }
@Override public SinglePartitionPager withUpdatedLimit(DataLimits newLimits) { return new SinglePartitionPager(command.withUpdatedLimit(newLimits), protocolVersion, lastReturned, maxRemaining(), remainingInPartition()); }
public PagingState state() { // Sets current to the first non-exhausted pager if (isExhausted()) return null; PagingState state = pagers[current].state(); return new PagingState(pagers[current].key(), state == null ? null : state.rowMark, remaining, pagers[current].remainingInPartition()); }
public PagingState state() { // Sets current to the first non-exhausted pager if (isExhausted()) return null; PagingState state = pagers[current].state(); return new PagingState(pagers[current].key(), state == null ? null : state.rowMark, remaining, pagers[current].remainingInPartition()); }
public PagingState state() { // Sets current to the first non-exhausted pager if (isExhausted()) return null; PagingState state = pagers[current].state(); return new PagingState(pagers[current].key(), state == null ? null : state.rowMark, remaining, pagers[current].remainingInPartition()); }
protected ReadCommand nextPageReadCommand(int pageSize) { Clustering clustering = lastReturned == null ? null : lastReturned.clustering(command.metadata()); DataLimits limits = (lastReturned == null || command.isForThrift()) ? limits().forPaging(pageSize) : limits().forPaging(pageSize, key(), remainingInPartition()); return command.forPaging(clustering, limits); }
protected ReadCommand nextPageReadCommand(int pageSize) { Clustering clustering = lastReturned == null ? null : lastReturned.clustering(command.metadata()); DataLimits limits = (lastReturned == null || command.isForThrift()) ? limits().forPaging(pageSize) : limits().forPaging(pageSize, key(), remainingInPartition()); return command.forPaging(clustering, limits); }
protected ReadCommand nextPageReadCommand(int pageSize) { Clustering clustering = lastReturned == null ? null : lastReturned.clustering(command.metadata()); DataLimits limits = (lastReturned == null || command.isForThrift()) ? limits().forPaging(pageSize) : limits().forPaging(pageSize, key(), remainingInPartition()); return command.forPaging(clustering, limits); }