I am writing the logic for pagination with Azure Java SDK. The obvious thought would be to store the last retrieved row's RowKey and use that in query next time. However for queries that go across partitions, I need to retrieve the x-ms-continuation-NextPartitionKey and x-ms-continuation-NextRowKey continuation tokens from response headers. I have seen the C# examples (http://msdn.microsoft.com/en-us/library/dd135718.aspx) but I am unable to find the Java equivalent.
How can I get these continuation tokens using Azure Java-SDK ? I am using CloudTableClient.execute to get TableResult, something like
TableQuery<DynamicTableEntity> myQuery = TableQuery
.from("test", DynamicTableEntity.class)
.where(where_condition).take(size);
CloudTableClient client = Table.getInstance().getConnection();
Iterator<DynamicTableEntity> rows = client.execute(query).iterator();