title: Astyanax key range query
body: <p>trying to write a query which will paginate through all rows in a column family using astyanax client and RowSliceQuery.</p>
  
  <pre><code>keyspace.prepareQuery(COLUMN_FAMILY).getKeyRange(null, null, null, null, 100);
  </code></pre>
  
  <p>Done this successfully using hector where 1st call is done with null start and end keys. After retrieving 1st page I use last key from the result to make query for second page and etc.  This is code for 1st page using hector.</p>
  
  <pre><code>HFactory.createRangeSlicesQuery(keyspace,
  LongSerializer.get(), new CompositeSerializer(),
  BytesArraySerializer.get())
  .setColumnFamily(COLUMN_FAMILY)
  .setRange(null, null, false, 100).setRowCount(100);
  </code></pre>
  
  <p>Now when I am trying to do this with astyanax I am getting errors about null and non-null keys and tokens.  Not sure what tokens do in this query.  Also I am able to use allRows(), but would like to do this using key range query as it gives me more flexibility.</p>
  
  <p>Does anybody have an example of key range query using astyanax?  I cannot find an example neither in "getting started" documentation or anywhere else on the net.</p>
  
  <p>Thanks!
  Anton</p>