If a previous scan/query returned all records specified by a PartitionFilter instance, a future scan/query using the same PartitionFilter instance will only return new records added after the last record read (in digest order) in each partition in the previous scan/query. To reset the cursor of an existing PartitionFilter instance, set Partitions to null.
[SerializableAttribute]
public sealed class PartitionFilter
Begin | First partition id. |
Count | Count of partitions. |
Digest | Resume after digest. |
Done | If using maxRecords or maxRecords, did previous paginated scans with this partition filter instance return all records? |
Partitions |
Cursor status of each partition after scan termination. The cursor contains the last record
read for each partition and is usually obtained from Partitions after a previous scan/query.
This is useful for a retry of a partially completed scan/query.
If a previous scan/query returned all records specified by a PartitionFilter instance, a future scan/query using the same PartitionFilter instance will only return new records added after the last record read (in digest order) in each partition in the previous scan/query. To reset the cursor of an existing PartitionFilter instance, set Partitions to null. The partition status is accurate for sync/async ScanPartitions and async QueryPartitions. The partition status may not be accurate for QueryPartitions(QueryPolicy, Statement, PartitionFilter) because the last digest received is set during query parsing, but the user may not have retrieved that digest from the RecordSet yet. |
After | Return records after key's digest in partition containing the digest. Note that digest order is not the same as userKey order. This method only works for scan or query with null filter. |
All | Read all partitions. |
Id | Filter by partition id. |
Range | Filter by partition range. |