Azure / azure-storage-android

Microsoft Azure Storage Library for Android
Apache License 2.0
81 stars 48 forks source link

How to limit number of records (like we do in SQL) and how to give offset in TableQuery? #45

Closed anandcpadiya closed 7 years ago

jofri-msft commented 7 years ago

Hi @anandcpadiya , you limit the number of records returned by passing a value for take() and pass a continuation token or select on certain values.

ie final ResultSegment result = table.executeSegmented( TableQuery.from(Class1.class).select(new String[] { "A", "C" }).take(25), null, options, null); result.getResults();