Example usage for org.apache.cassandra.service.pager PagingState PagingState

List of usage examples for org.apache.cassandra.service.pager PagingState PagingState

Introduction

In this page you can find the example usage for org.apache.cassandra.service.pager PagingState PagingState.

Prototype

public PagingState(ByteBuffer partitionKey, RowMark rowMark, int remaining, int remainingInPartition) 

Source Link

Usage

From source file:com.stratio.cassandra.lucene.IndexPagingState.java

License:Apache License

/**
 * Returns a CQL {@link PagingState} containing this Lucene paging state.
 *
 * @return a CQL paging state//w w  w  .  j  a  va  2 s.co m
 */
PagingState toPagingState() {
    return hasMorePages ? new PagingState(toByteBuffer(), null, remaining, remaining) : null;
}